Skip to content

Commit

Permalink
Add lint to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
louislo7 committed Jan 16, 2021
1 parent 815cde2 commit af6b734
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
1 change: 0 additions & 1 deletion .eslintcache

This file was deleted.

35 changes: 19 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,28 @@ name: Tests

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache go mod directories
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run Go tests
run: go test ./...
- name: Run Webapp tests
run: yarn install && yarn run test

- name: Checkout
uses: actions/checkout@v2
- name: Cache go mod directories
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run Go tests
run: go test ./...
- name: Install Webapp dependencies
run: yarn install
- name: Run Webapp tests
run: yarn run test
- name: Run Webapp lints
run: yarn lint

0 comments on commit af6b734

Please sign in to comment.