Skip to content

Commit

Permalink
ci: split jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
lasiar committed Apr 30, 2024
1 parent 8a78958 commit da5699c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 12 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: codeql

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 8 * * 1' # run "At 08:00 on Monday"ma

jobs:
build:
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_VERSION: v1.57.2

steps:
- name: Install Go stable
uses: actions/setup-go@master

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
- name: Linter
run: |
make linter
14 changes: 2 additions & 12 deletions .github/workflows/go.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: test

on:
push:
Expand All @@ -11,8 +11,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_VERSION: v1.57.2

strategy:
matrix:
Expand All @@ -39,14 +37,6 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
- name: Linter
run: |
make linter
- name: Test
run: |
make test
make test

0 comments on commit da5699c

Please sign in to comment.