ci: run CI linters concurrently

This commit is contained in:
Oleg Lobanov 2021-12-20 22:00:31 +01:00
parent 2bebb5f0f8
commit 89d1c06441
No known key found for this signature in database
GPG Key ID: 7CC64E41212621B0
1 changed files with 25 additions and 5 deletions

View File

@ -9,25 +9,45 @@ on:
pull_request:
jobs:
lint:
lint-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: make lint-frontend
lint-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- run: make lint-backend
lint-commints:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm i -g commitlint
- run: make lint
- run: make lint-commits
lint:
runs-on: ubuntu-latest
needs: [lint-frontend, lint-backend, lint-commints]
steps:
- run: echo "passed"
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- uses: actions/setup-node@v2
with:
node-version: '14'
@ -42,7 +62,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- uses: actions/setup-node@v2
with:
node-version: '14'