aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-09-06 16:13:03 -0500
committermat <github@matdoes.dev>2021-09-06 16:13:03 -0500
commit82449fef19e2f98ac020d4106821f5708588780b (patch)
tree31f2353c3560b28c1392913cccb20c81f0447f02 /.github/workflows/test.yml
parent487f208565894f332ca58c13e1b208c3beb9c8c6 (diff)
downloadskyblock-api-82449fef19e2f98ac020d4106821f5708588780b.tar.gz
skyblock-api-82449fef19e2f98ac020d4106821f5708588780b.tar.bz2
skyblock-api-82449fef19e2f98ac020d4106821f5708588780b.zip
only automerge after compiling
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml24
1 files changed, 22 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ed1fc94..214ddf3 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,7 +1,7 @@
on: [ push, pull_request ]
jobs:
- build:
+ test:
runs-on: ubuntu-latest
name: Run tests
steps:
@@ -15,8 +15,28 @@ jobs:
- name: Run tests
run: npm test
+ build:
+ runs-on: ubuntu-latest
+ name: Compile Typescript
+ if: github.ref == 'refs/heads/main'
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: '16.0.0'
+ - run: npm install
+ - name: Compile Typescript
+ uses: FuLagann/tsc-build-push@v1
+ with:
+ user-name: "mat-1"
+ user-email: "github@matdoes.dev"
+ message: "Compiled TS into JS"
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
automerge:
- needs: build
+ needs: [ build, test ]
runs-on: ubuntu-latest
steps:
- uses: fastify/github-action-merge-dependabot@v2.1.1