Update github actions
This commit is contained in:
parent
f448431675
commit
c6826aad31
4
.github/workflows/e2e.yml
vendored
4
.github/workflows/e2e.yml
vendored
@ -6,6 +6,10 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e-tests:
|
e2e-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
37
.github/workflows/go_cov.yml
vendored
37
.github/workflows/go_cov.yml
vendored
@ -1,25 +1,31 @@
|
|||||||
name: Go
|
name: Go Coverage
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [ master ]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
schedule:
|
schedule:
|
||||||
# Run every 12 hours, at the 15 minute mark. E.g.
|
- cron: '15 */12 * * *'
|
||||||
# 2020-11-29 00:15:00 UTC, 2020-11-29 12:15:00 UTC, 2020-11-30 00:15:00 UTC
|
|
||||||
- cron: '15 */12 * * *'
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
concurrency:
|
||||||
name: Build and Unit Test
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Build and Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: ^1.13
|
go-version: '1.23'
|
||||||
|
cache: true
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./...
|
run: go build -v ./...
|
||||||
@ -27,7 +33,8 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
|
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
|
||||||
|
|
||||||
- name: Upload Coverage
|
- name: Send coverage
|
||||||
uses: shogo82148/actions-goveralls@v1
|
uses: coverallsapp/github-action@v2
|
||||||
with:
|
with:
|
||||||
path-to-profile: coverage.out
|
file: coverage.out
|
||||||
|
format: golang
|
||||||
|
|||||||
8
.github/workflows/golangci-lint.yml
vendored
8
.github/workflows/golangci-lint.yml
vendored
@ -1,11 +1,19 @@
|
|||||||
name: golangci-lint
|
name: golangci-lint
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [ master ]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
golangci:
|
golangci:
|
||||||
name: lint
|
name: lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user