Skip to content

Commit

Permalink
chore - merge workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
Xopherus committed May 17, 2024
1 parent a95f5e2 commit 069498c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 37 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/golangci-lint.yml

This file was deleted.

43 changes: 38 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,49 @@
name: tests
on: [push, pull_request]
name: go-aws-msg
on:
push:
branches:
- main
- master
pull_request:

permissions:
contents: read

jobs:
tests:
lint:
name: lint
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.17.x, 1.18.x]
include:
- go-version: 1.17.x
lint-version: v1.44.2
- go-version: 1.18.x
lint-version: v1.47.3
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
args: -v
version: ${{ matrix.lint-version }}

tests:
name: tests
runs-on: ubuntu-latest
strategy:
matrix:
include:
- go-version: 1.17.x
- go-version: 1.18.x
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
name: "install go"
with:
go-version: ${{ matrix.go-version }}
- name: "tests"
run: go test ./...
run: go test ./... -race

0 comments on commit 069498c

Please sign in to comment.