ci: update actions
This commit is contained in:
parent
daf17443ce
commit
1ef87bf54f
|
|
@ -5,28 +5,16 @@ jobs:
|
||||||
gotify:
|
gotify:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: 1.22.x
|
go-version: 1.22.x
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
- uses: actions/cache@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
path: ~/go/pkg/mod
|
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go-
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
ui/node_modules
|
|
||||||
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
|
|
||||||
restore-keys: ${{ runner.os }}-node_modules-
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- run: (cd ui && yarn)
|
- run: (cd ui && yarn)
|
||||||
- run: make build-js
|
- run: make build-js
|
||||||
- uses: golangci/golangci-lint-action@v3
|
- uses: golangci/golangci-lint-action@v5
|
||||||
with:
|
with:
|
||||||
version: v1.55
|
version: v1.55
|
||||||
args: --timeout=5m
|
args: --timeout=5m
|
||||||
|
|
@ -35,7 +23,9 @@ jobs:
|
||||||
- run: make download-tools
|
- run: make download-tools
|
||||||
- run: make test
|
- run: make test
|
||||||
- run: make check-ci
|
- run: make check-ci
|
||||||
- uses: codecov/codecov-action@v1
|
- uses: codecov/codecov-action@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
- if: startsWith(github.ref, 'refs/tags/v')
|
- if: startsWith(github.ref, 'refs/tags/v')
|
||||||
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
||||||
- if: startsWith(github.ref, 'refs/tags/v')
|
- if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue