Skip to content

Commit 7ce00fe

Browse files
committed
ci(github): just kidding remove the dependency
1 parent efad7eb commit 7ce00fe

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

.github/workflows/api.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,26 @@ on:
2828
default: false
2929

3030
jobs:
31-
# test:
32-
# runs-on: ubuntu-latest
33-
# name: Test
34-
# steps:
35-
# - uses: actions/checkout@v2
36-
# - uses: actions/setup-node@v2
37-
# with:
38-
# node-version: 18
39-
# - uses: bahmutov/npm-install@v1
40-
# - run: npm run build --workspace packages/api
41-
# - run: npm test --workspace packages/api
42-
# env:
43-
# PG_REST_URL: ${{secrets.PG_REST_URL}}
44-
# PG_REST_JWT: ${{secrets.PG_REST_JWT}}
45-
# PG_CONNECTION: ${{secrets.PG_CONNECTION}}
31+
test:
32+
runs-on: ubuntu-latest
33+
name: Test
34+
steps:
35+
- uses: actions/checkout@v2
36+
- uses: actions/setup-node@v2
37+
with:
38+
node-version: 18
39+
- uses: bahmutov/npm-install@v1
40+
- run: npm run build --workspace packages/api
41+
- run: npm test --workspace packages/api
42+
env:
43+
PG_REST_URL: ${{secrets.PG_REST_URL}}
44+
PG_REST_JWT: ${{secrets.PG_REST_JWT}}
45+
PG_CONNECTION: ${{secrets.PG_CONNECTION}}
4646

4747
changelog:
4848
name: Changelog
4949
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5050
runs-on: ubuntu-latest
51-
needs: test
5251
outputs:
5352
releases_created: ${{ steps.tag-release.outputs.releases_created }}
5453
steps:
@@ -66,7 +65,6 @@ jobs:
6665
name: Deploy Staging
6766
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event.inputs.force_deploy_staging
6867
runs-on: ubuntu-latest
69-
needs: test
7068
environment:
7169
name: staging
7270
steps:
@@ -105,7 +103,6 @@ jobs:
105103
if: (github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.changelog.outputs.releases_created) || github.event.inputs.force_deploy_production
106104
runs-on: ubuntu-latest
107105
needs:
108-
- test
109106
- changelog
110107
environment:
111108
name: production

0 commit comments

Comments
 (0)