Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more build environment test #546

Merged
merged 4 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading