Skip to content

Commit

Permalink
ci: setup copywrite action
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Nov 5, 2023
1 parent 11902ef commit e4f798b
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
name: Run CI Tests
on: [push]
jobs:
changes:
runs-on: [ubuntu-22.04]
run-copywrite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: hashicorp/setup-copywrite@v1.1.2
- name: verify copyright
run: |
copywrite headers --plan
run-lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-golang@v1
with:
version-file: go.mod
- uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
skip-cache: true
run-changes:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-golang@v1
with:
version-file: go.mod
Expand All @@ -21,14 +40,10 @@ jobs:
- windows-2022
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: hashicorp/setup-golang@v1
with:
version-file: go.mod
- uses: golangci/golangci-lint-action@v3
with:
version: v1.50
skip-cache: true
- name: Run Go Test
run: |
make test

0 comments on commit e4f798b

Please sign in to comment.