Skip to content

Commit

Permalink
ci: merge test/lint jobs in a single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wI2L committed Nov 11, 2024
1 parent 2f1f3f0 commit c154e66
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 33 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/test.yml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: ci

on:
push:
Expand All @@ -13,14 +13,29 @@ permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
test:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go:
- "1.22.x"
- "1.23.x"
os:
- ubuntu-latest
- macos-latest
Expand All @@ -29,7 +44,6 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: false
- name: Checkout repository
uses: actions/checkout@v4
- name: Run tests
Expand All @@ -38,4 +52,5 @@ jobs:
uses: codecov/codecov-action@v4
with:
files: coverage.txt
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/lint.yml

This file was deleted.

0 comments on commit c154e66

Please sign in to comment.