-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (38 loc) · 1.09 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Tests
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
NPM_TOKEN: ""
jobs:
run-tests:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Install GJS
run: |
sudo sed -i 's/azure\.//' /etc/apt/sources.list
echo nameserver 8.8.8.8 | sudo tee /etc/resolv.conf
echo "Starting update"
sudo apt-get update -o Acquire::ForceIPv4=true -y
echo "Installing GJS"
sudo apt-get install -o Acquire::ForceIPv4=true -y gjs
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: ./.yarn/yarn.cjs install --immutable --mode=skip-build
- name: Run TypeScript
run: ./.yarn/yarn.cjs test:tsc
- name: Run Linter
run: ./.yarn/yarn.cjs test:lint
- name: Run Prettier Check
run: ./.yarn/yarn.cjs test:format
- name: Run Unit Test
run: ./.yarn/yarn.cjs test:unit
- name: Attempt Build
run: ./.yarn/yarn.cjs build