Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
NDoolan360 committed May 3, 2024
1 parent eaaa187 commit b453329
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,28 @@ on:
- master

jobs:
go:
ci:
runs-on: ubuntu-latest

strategy:
matrix:
directory: [./website, ./api/health, ./api/projects]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
- uses: actions/checkout@v4
- run: cd ${{ matrix.directory }}
- uses: actions/setup-go@v5
with:
go-version: 1.21.6

- name: Go Lint
uses: golangci/golangci-lint-action@v3
go-version: 1.22.2
- name: Lint
uses: golangci/golangci-lint-action@v5
with:
version: v1.55.2
version: v1.55.2

- name: Run Go Tests
run: go test ./api -v
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.2
- name: Test
run: make test
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ lerna-debug.log*
# Go coverage tool output
*.out

# Go workspace file
go.work
go.work.sum

# Ignore templ generated files
*_templ.go
*_templ.txt
Expand Down

0 comments on commit b453329

Please sign in to comment.