-
Notifications
You must be signed in to change notification settings - Fork 198
63 lines (52 loc) · 1.49 KB
/
tusk-sanity-check.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Tusk Sanity Check
on:
workflow_dispatch:
inputs:
taskId:
description: "Tusk Task ID"
required: true
runType:
description: "Tusk Run Type"
required: true
runId:
description: "Tusk Run ID"
required: true
jobs:
sanity_check:
runs-on: ubuntu-latest
steps:
- name: Log inputs/branch
run: |
echo "Tusk Task ID: ${{ github.event.inputs.taskId }}"
echo "Tusk Run Type: ${{ github.event.inputs.runType }}"
echo "Tusk Run ID: ${{ github.event.inputs.runId }}"
echo "Branch: ${{ github.ref }}"
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Set Node.js v18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install web dependencies
run: yarn install
working-directory: ./web
- name: Web lint fix
run: yarn lint --fix
working-directory: ./web
- name: Install worker dependencies
run: yarn install
working-directory: ./worker
- name: Worker lint fix
run: yarn lint-fix
working-directory: ./worker
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "fix(${{ github.run_id }}): auto linting"
skip_fetch: true
skip_checkout: true
- name: Web build
run: |
cp ../.env.example .env
yarn build
working-directory: ./web