Skip to content

Commit

Permalink
Update Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
starskim committed May 13, 2024
1 parent 965655a commit 35867a0
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@ name: "CI"
on:
push:
branches:
- '**'
- "**"
pull_request:
branches:
- '**'
- "**"
jobs:
# run unittest
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: [ '1.20' ]
go: ["1.20"]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
check-latest: true
cache-dependency-path: "**/*.sum"
- uses: actions/checkout@v4
- name: Install dependencies
run: |
go get .
go mod tidy
- run: go test -v -coverprofile=profile.cov ./...
- name: go vet
run: |
Expand All @@ -40,8 +42,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ linux, windows, darwin ]
goarch: [ "386", amd64, arm, arm64 ]
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm, arm64]
exclude:
- goos: darwin
goarch: arm
Expand All @@ -53,7 +55,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: "1.20"
check-latest: true
cache-dependency-path: "**/*.sum"
- name: Set env
Expand All @@ -76,12 +78,11 @@ jobs:
./DDBOT
./DDBOT.exe
# notifies that all test jobs are finished.
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
parallel-finished: true

0 comments on commit 35867a0

Please sign in to comment.