|
|
|
@ -9,32 +9,13 @@ on:
|
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
go-static-checks:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-go@v3
|
|
|
|
|
with:
|
|
|
|
|
go-version: 1.18
|
|
|
|
|
check-latest: true
|
|
|
|
|
cache: true
|
|
|
|
|
- name: Verify go.mod is tidy
|
|
|
|
|
run: |
|
|
|
|
|
go mod tidy
|
|
|
|
|
git diff --exit-code
|
|
|
|
|
- name: golangci-lint
|
|
|
|
|
uses: golangci/golangci-lint-action@v3
|
|
|
|
|
with:
|
|
|
|
|
args: -v
|
|
|
|
|
skip-cache: true
|
|
|
|
|
|
|
|
|
|
eslint-checks:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
|
with:
|
|
|
|
|
node-version: "16"
|
|
|
|
|
node-version: "18"
|
|
|
|
|
cache: yarn
|
|
|
|
|
cache-dependency-path: "web/yarn.lock"
|
|
|
|
|
- run: yarn
|
|
|
|
@ -49,7 +30,7 @@ jobs:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
|
with:
|
|
|
|
|
node-version: "16"
|
|
|
|
|
node-version: "18"
|
|
|
|
|
cache: yarn
|
|
|
|
|
cache-dependency-path: "web/yarn.lock"
|
|
|
|
|
- run: yarn
|
|
|
|
@ -64,7 +45,7 @@ jobs:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
|
with:
|
|
|
|
|
node-version: "16"
|
|
|
|
|
node-version: "18"
|
|
|
|
|
cache: yarn
|
|
|
|
|
cache-dependency-path: "web/yarn.lock"
|
|
|
|
|
- run: yarn
|
|
|
|
@ -73,13 +54,32 @@ jobs:
|
|
|
|
|
run: yarn build
|
|
|
|
|
working-directory: web
|
|
|
|
|
|
|
|
|
|
go-static-checks:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-go@v3
|
|
|
|
|
with:
|
|
|
|
|
go-version: 1.19
|
|
|
|
|
check-latest: true
|
|
|
|
|
cache: true
|
|
|
|
|
- name: Verify go.mod is tidy
|
|
|
|
|
run: |
|
|
|
|
|
go mod tidy
|
|
|
|
|
git diff --exit-code
|
|
|
|
|
- name: golangci-lint
|
|
|
|
|
uses: golangci/golangci-lint-action@v3
|
|
|
|
|
with:
|
|
|
|
|
args: -v
|
|
|
|
|
skip-cache: true
|
|
|
|
|
|
|
|
|
|
go-tests:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-go@v3
|
|
|
|
|
with:
|
|
|
|
|
go-version: 1.18
|
|
|
|
|
go-version: 1.19
|
|
|
|
|
check-latest: true
|
|
|
|
|
cache: true
|
|
|
|
|
- name: Run all tests
|
|
|
|
|