Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisWiegman committed Jun 19, 2024
1 parent 9d83961 commit e4050d6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,25 @@ name: "CodeQL"

on:
push:
branches: [ "main", canary ]
branches:
- develop
- main
tags-ignore:
- "**"
pull_request:
branches: [ "main" ]
branches:
- develop
- main
schedule:
- cron: '44 8 * * 3'

# Cancel previous workflow run groups that have not completed.
concurrency:
# Group workflow runs by workflow name, along with the head branch ref of the pull request
# or otherwise the branch or tag ref.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@ name: Lint
on:
push:
branches:
- "**"
- develop
- main
tags-ignore:
- "**"
pull_request:
branches:
- "**"
- develop
- main

# Cancel previous workflow run groups that have not completed.
concurrency:
# Group workflow runs by workflow name, along with the head branch ref of the pull request
# or otherwise the branch or tag ref.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
golangci-lint:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@ name: Test
on:
push:
branches:
- "**"
- develop
- main
tags-ignore:
- "**"
pull_request:
branches:
- develop
- main

# Cancel previous workflow run groups that have not completed.
concurrency:
# Group workflow runs by workflow name, along with the head branch ref of the pull request
# or otherwise the branch or tag ref.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
go-test:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit e4050d6

Please sign in to comment.