diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1c1b22c..5fcc52c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,7 +3,7 @@ on: push: jobs: - main: + app: runs-on: ubuntu-latest defaults: run: @@ -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: