Skip to content

Commit f972d1c

Browse files
authored
chore: migrate PR protection to GH actions (#145)
1 parent fb532be commit f972d1c

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: PR Checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@main
14+
with:
15+
persist-credentials: false
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: "22.x"
20+
21+
- name: Install
22+
run: npm install
23+
24+
- name: Build
25+
run: npm run build
26+
27+
- name: Test
28+
run: npm test
29+
30+
- name: E2E
31+
run: npm run e2e
32+
env:
33+
BUGSPLAT_HOST: ${{ secrets.BUGSPLAT_HOST }}
34+
BUGSPLAT_USER: ${{ secrets.BUGSPLAT_USER }}
35+
BUGSPLAT_PASSWORD: ${{ secrets.BUGSPLAT_PASSWORD }}
36+
BUGSPLAT_DATABASE: ${{ secrets.BUGSPLAT_DATABASE }}
37+
BUGSPLAT_CLIENT_ID: ${{ secrets.BUGSPLAT_CLIENT_ID }}
38+
BUGSPLAT_CLIENT_SECRET: ${{ secrets.BUGSPLAT_CLIENT_SECRET }}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"prepare": "husky install",
1515
"pretest": "npm run lint:fix",
1616
"test": "ts-node -r tsconfig-paths/register node_modules/jasmine/bin/jasmine --config=spec/support/jasmine.spec.json",
17-
"test:teamcity": "ts-node -r tsconfig-paths/register node_modules/jasmine/bin/jasmine --config=spec/support/jasmine.teamcity.spec.json",
1817
"lint": "eslint .",
1918
"lint:fix": "npm run lint -- --fix",
2019
"e2e": "ts-node -r tsconfig-paths/register node_modules/jasmine/bin/jasmine --config=spec/support/jasmine.e2e.json",

0 commit comments

Comments
 (0)