Skip to content

Commit

Permalink
add api ci (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhitacre authored May 2, 2024
1 parent 65e147f commit 92acbbb
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:

jobs:
main:
app:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -16,9 +16,21 @@ jobs:
- run: yarn
- run: yarn lint
- run: yarn test
api:
runs-on: ubuntu-latest
defaults:
run:
working-directory: api
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- run: go mod download
- run: go test
deploy:
runs-on: ubuntu-latest
needs: [main]
needs: [app, api]
if: ${{ (github.head_ref || github.ref_name) == 'main' }}
environment: hdweeklyleague.com
steps:
Expand Down

0 comments on commit 92acbbb

Please sign in to comment.