Skip to content

Commit

Permalink
ci: update github actions config
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed Feb 26, 2024
1 parent 453fefc commit f2fb1b7
Show file tree
Hide file tree
Showing 9 changed files with 124 additions and 124 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ permissions: {}

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [ main ]
schedule:
- cron: '30 5 * * 4'

Expand All @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3

Expand All @@ -24,19 +24,19 @@ jobs:
- lint
strategy:
matrix:
go: ['1.18', '1.19']
go: ['1.22', 'tip']
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run tests
run: |
go test -v -race -covermode atomic -coverprofile=coverage.txt ./...
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: linux,local
fail_ci_if_error: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
go: ['1.18', '1.19']
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run tests
run: |
go test -v -race -covermode atomic -coverprofile=coverage.txt ./...
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: macos,local
fail_ci_if_error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
54 changes: 27 additions & 27 deletions .github/workflows/test-guild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
- NetworkGenesis
- NetworkTotals
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -45,13 +45,13 @@ jobs:
- EpochParams
- EpochBlockProtocols
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -67,13 +67,13 @@ jobs:
- BlockInfo
- BlockTxs
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -91,13 +91,13 @@ jobs:
- TxMetaLabels
- TxStatus
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -117,13 +117,13 @@ jobs:
- AddressAssets
- CredentialTxs
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -147,13 +147,13 @@ jobs:
- AccountAssets
- AccountHistory
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -176,13 +176,13 @@ jobs:
- AssetSummary
- AssetTxs
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -208,13 +208,13 @@ jobs:
- PoolRelays
- PoolMetadata
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -234,13 +234,13 @@ jobs:
- ScriptRedeemers
- DatumInfo
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand Down
54 changes: 27 additions & 27 deletions .github/workflows/test-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
- NetworkGenesis
- NetworkTotals
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -45,13 +45,13 @@ jobs:
- EpochParams
- EpochBlockProtocols
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -67,13 +67,13 @@ jobs:
- BlockInfo
- BlockTxs
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -91,13 +91,13 @@ jobs:
- TxMetaLabels
- TxStatus
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -117,13 +117,13 @@ jobs:
- AddressAssets
- CredentialTxs
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -147,13 +147,13 @@ jobs:
- AccountAssets
- AccountHistory
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -176,13 +176,13 @@ jobs:
- AssetSummary
- AssetTxs
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -208,13 +208,13 @@ jobs:
- PoolRelays
- PoolMetadata
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand All @@ -234,13 +234,13 @@ jobs:
- ScriptRedeemers
- DatumInfo
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go test -v -covermode atomic -coverprofile coverage.txt -run ^Test${{ matrix.test }}$
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: "${{ env.KOIOS_NETWORK }},${{ github.job }},${{ matrix.test }}"
name: "${{ env.KOIOS_NETWORK }}-${{ github.job }}-${{ matrix.test }}"
Expand Down
Loading

0 comments on commit f2fb1b7

Please sign in to comment.