Skip to content

Commit af6b734

Browse files
committed
Add lint to Github Actions
1 parent 815cde2 commit af6b734

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

.eslintcache

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/tests.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,28 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
- name: Cache go mod directories
16-
uses: actions/cache@v2
17-
with:
18-
path: ~/go/pkg/mod
19-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
20-
restore-keys: |
21-
${{ runner.os }}-go-
22-
- name: Run Go tests
23-
run: go test ./...
24-
- name: Run Webapp tests
25-
run: yarn install && yarn run test
26-
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Cache go mod directories
16+
uses: actions/cache@v2
17+
with:
18+
path: ~/go/pkg/mod
19+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
20+
restore-keys: |
21+
${{ runner.os }}-go-
22+
- name: Run Go tests
23+
run: go test ./...
24+
- name: Install Webapp dependencies
25+
run: yarn install
26+
- name: Run Webapp tests
27+
run: yarn run test
28+
- name: Run Webapp lints
29+
run: yarn lint

0 commit comments

Comments
 (0)