Skip to content

Commit

Permalink
Updating github actions workflows to test 1.20 and 1.21 (#45)
Browse files Browse the repository at this point in the history
<!--
For Work In Progress Pull Requests, please use the Draft PR feature,
see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for
further details.

     For a timely review/response, please avoid force-pushing additional
     commits if your PR already received reviews or comments.

     Before submitting a Pull Request, please ensure that you have:
- 📖 Read the Contributing guide:
https://github.com/gorilla/.github/blob/main/CONTRIBUTING.md
- 📖 Read the Code of Conduct:
https://github.com/gorilla/.github/blob/main/CODE_OF_CONDUCT.md

     - Provide tests for your changes.
     - Use descriptive commit messages.
	 - Comment your code where appropriate.
	 - Squash your commits
     - Update any related documentation.

     - Add gorilla/pull-request-reviewers as a Reviewer
-->

## What type of PR is this? (check all applicable)

- [x] Refactor
- [ ] Feature
- [ ] Bug Fix
- [ ] Optimization
- [ ] Documentation Update
- [ ] Go Version Update
- [ ] Dependency Update

## Description

## Related Tickets & Documents

<!--
For pull requests that relate or close an issue, please include them
below. We like to follow [Github's guidance on linking issues to pull
requests](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).

For example having the text: "closes #1234" would connect the current
pull
request to issue 1234.  And when we merge the pull request, Github will
automatically close the issue.
-->

- Related Issue #
- Closes #

## Added/updated tests?

- [ ] Yes
- [ ] No, and this is why: _please replace this line with details on why
tests
      have not been included_
- [ ] I need help with writing tests

## Run verifications and test

- [x] `make verify` is passing
- [x] `make test` is passing
  • Loading branch information
coreydaley authored Oct 18, 2023
1 parent a45ea70 commit 6a490e2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ permissions:
contents: read
jobs:
scan:
strategy:
matrix:
go: ['1.20','1.21']
fail-fast: true
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Go 1.20
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: ${{ matrix.go }}
cache: false

- name: Run GoSec
Expand All @@ -29,5 +33,5 @@ jobs:
- name: Run GoVulnCheck
uses: golang/govulncheck-action@v1
with:
go-version-input: 1.20.x
go-version-input: ${{ matrix.go }}
go-package: ./...
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@ permissions:
contents: read
jobs:
unit:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.20','1.21']
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Go 1.20
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: ${{ matrix.go }}
cache: false

- name: Run Tests
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ permissions:
contents: read
jobs:
lint:
strategy:
matrix:
go: ['1.20','1.21']
fail-fast: true
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Go 1.20
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: ${{ matrix.go }}
cache: false

- name: Run GolangCI-Lint
Expand Down

0 comments on commit 6a490e2

Please sign in to comment.