-
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (35 loc) · 856 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Tests
on:
push:
branches: [main]
jobs:
Bot:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Install Node Modules
run: npm install
- name: Check Formatting
run: npm run test
- name: TypeScript Validation
run: npm run build
Push:
needs: Bot
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: tests-passed
- name: Push to tests-passed
run: |
git config user.name github-actions
git config user.email [email protected]
git merge origin/main
git push