Skip to content

Commit

Permalink
🆙 bump dependencies & github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jfcg committed May 11, 2024
1 parent fccbeaa commit f6b11c3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 31 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/QA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,61 +16,51 @@ env:
jobs:
Tests:
strategy:
max-parallel: 1
max-parallel: 2
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
go: [ '1.19', '1.20' ]
go: [ oldstable, stable ]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Run Tests
run: go test -timeout 1h -v
- name: Run Tests with Coverage
run: go test -timeout 1h -v -cover

Analysis:
needs: Tests
permissions:
actions: read
security-events: write
strategy:
matrix:
go: [ '1.19', '1.20' ]
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
go-version: stable
- name: Initialize
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: go
- name: Analyze
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

Tuning:
needs: Analysis
if: github.ref_name == 'dev'
strategy:
max-parallel: 1
matrix:
go: [ '1.19', '1.20' ]
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
go-version: stable
- name: Tune Params
run: go test -timeout 3h -tags tuneparam
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/jfcg/sorty/v2

go 1.18
go 1.21

require (
github.com/jfcg/opt v0.3.1
github.com/jfcg/rng v1.0.4
github.com/jfcg/sixb v1.3.8
github.com/jfcg/rng v1.0.6
github.com/jfcg/sixb v1.4.1
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github.com/jfcg/opt v0.3.1 h1:6zgKvv3fR5OlX2nxUYJC4wtosY30N4vypILgXmRNr34=
github.com/jfcg/opt v0.3.1/go.mod h1:3ZUYQhiqKM6vVjMRYV1fVZ9a91EQ47b5kg7KsnfRClk=
github.com/jfcg/rng v1.0.4 h1:wCAgNN4UaNAL7pMHNkXjHzPuNkNmvVa0vzk5ntYl9gY=
github.com/jfcg/rng v1.0.4/go.mod h1:Il7SBjGd15fCUKgoKrz1ULfeBemBqS3HbUqRIcNGLvE=
github.com/jfcg/sixb v1.3.8 h1:BKPp/mIFCkKnnqhbgasI4wO/BYas6NHNcUCowUfTzSI=
github.com/jfcg/sixb v1.3.8/go.mod h1:UWrAr1q9s7pSPPqZNccmQM4N75p8GvuBYdFuq+09Qns=
github.com/jfcg/rng v1.0.6 h1:JCYvI/GaSSd3lL0zl15J7FNHqMZYNosPmNKDrysKhH0=
github.com/jfcg/rng v1.0.6/go.mod h1:UqYFfcn9XCugyejaC+8cXQgrWtHQtvlWGiLQXu/7Cnw=
github.com/jfcg/sixb v1.4.1 h1:lb/fWXTn7G+Om2K2/NhZByppgPyQ7mWyQ5XOHu9PAfU=
github.com/jfcg/sixb v1.4.1/go.mod h1:hofNeC6Ua8uwQ7X14L2/byXF1xJyUyX4lk53SmeAopI=

0 comments on commit f6b11c3

Please sign in to comment.