Skip to content

Commit

Permalink
Merge pull request #546 from k1LoW/os-test
Browse files Browse the repository at this point in the history
Add more build environment test
  • Loading branch information
k1LoW authored Dec 14, 2023
2 parents 0b4dbe4 + a5d5747 commit 1041da6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Check out source code
uses: actions/checkout@v4

- name: Set up Go on ${{ matrix.platform }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
name: Test
strategy:
matrix:
platform: [windows-2019]
platform: [windows-2019, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Use LF
Expand All @@ -90,7 +90,7 @@ jobs:
- name: Check out source code
uses: actions/checkout@v4

- name: Set up Go on ${{ matrix.platform }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
Expand Down
25 changes: 22 additions & 3 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
pull_request:
paths:
- .github/workflows/release-test.yml
- .goreleaser/*.yml

jobs:
Expand All @@ -29,6 +30,11 @@ jobs:
brew install goreleaser
brew install sqlite3
- name: Install
run: |
go install github.com/k1LoW/tbls@latest
tbls version
- name: Release (dry-run)
run: |
goreleaser release --config .goreleaser/darwin.yml --clean --snapshot --skip-publish
Expand All @@ -49,11 +55,16 @@ jobs:
with:
fetch-depth: 0

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

- name: Install
run: |
go install github.com/k1LoW/tbls@latest
tbls version
- name: Run GoReleaser (dry-run)
uses: goreleaser/goreleaser-action@v5
with:
Expand All @@ -64,7 +75,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

windows-release-test:
runs-on: windows-2019
strategy:
matrix:
os: [windows-2019, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Use LF
run: |
Expand All @@ -83,11 +97,16 @@ jobs:
with:
fetch-depth: 0

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

- name: Install
run: |
go install github.com/k1LoW/tbls@latest
tbls version
- name: Run GoReleaser (dry-run)
uses: goreleaser/goreleaser-action@v5
with:
Expand Down

0 comments on commit 1041da6

Please sign in to comment.