Skip to content

Commit

Permalink
ci: update ci configuration
Browse files Browse the repository at this point in the history
The previous configuration is badly outdated and needs to be updated.
In the new version, I removed the checks for the dependency option
without go modules, and also removed all old versions of go, as I don't
intend to support them in the future.

For convenience, added manual startup for workflow.
  • Loading branch information
xorcare committed Jan 26, 2024
1 parent ee2ca1d commit 7c705d1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 83 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [ main ]
schedule:
- cron: '44 5 * * 5'
workflow_dispatch:

jobs:
analyze:
Expand Down
83 changes: 0 additions & 83 deletions .github/workflows/continuous-integration.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
ci:
name: Static analysis and testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false

- name: Check that all packages are compiling
run: make build

- name: Run all test
run: make test

- name: Installing tools
run: make tools

- name: Run all checks
run: make check

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

0 comments on commit 7c705d1

Please sign in to comment.