matrix builds for CI. simplifying release config
This commit is contained in:
@@ -8,7 +8,13 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
runson: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runson: [
|
||||
ubuntu-latest,
|
||||
ubuntu-20.04,
|
||||
macos-latest,
|
||||
windows-latest,
|
||||
windows-2019
|
||||
]
|
||||
uses: ./.github/workflows/actions-sync-e2e-test-called.yml
|
||||
with:
|
||||
runson: ${{ matrix.runson }}
|
||||
|
||||
@@ -4,13 +4,23 @@ on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
CI:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-20.04, ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Lint
|
||||
run: docker-compose run --rm lint
|
||||
- name: Test
|
||||
run: docker-compose run --rm test
|
||||
- name: E2E
|
||||
run: docker-compose run --rm test-build
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.21
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@v4
|
||||
with:
|
||||
version: v1.57.2
|
||||
args: run
|
||||
- name: Unit Tests
|
||||
run: .script/test
|
||||
- name: Build and Test
|
||||
run: ./script/test-build
|
||||
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
- name: Set CURRENT_TAG
|
||||
run: echo "GORELEASER_CURRENT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@f09f1a7bee7ae6b5153daf4e8c63cc8ce8c7e7d5
|
||||
uses: goreleaser/goreleaser-action@v5
|
||||
with:
|
||||
version: latest
|
||||
args: release --clean
|
||||
|
||||
Reference in New Issue
Block a user