Skip to content

Commit

Permalink
Improve CI (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamamoto-febc authored Nov 22, 2023
1 parent c3c01be commit 4ff3751
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Daily Integration Test
on:
schedule:
- cron: '30 23 * * *'
workflow_dispatch:
env:
GOPROXY: https://proxy.golang.org
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-22.04, ubuntu-20.04]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Unshallow
run: git fetch --prune --unshallow

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'

- name: Setup tools
run: |
make tools
- name: make test
run: |
make test
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
go-version-file: 'go.mod'

- name: Describe plugin
id: plugin_describe
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
go-version-file: 'go.mod'

- name: Setup tools
run: |
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
go-version-file: 'go.mod'

- name: Setup tools
run: |
Expand All @@ -53,10 +53,7 @@ jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-22.04, ubuntu-20.04]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -67,7 +64,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
go-version-file: 'go.mod'

- name: Setup tools
run: |
Expand Down

0 comments on commit 4ff3751

Please sign in to comment.