Add test262 github action
Add a new workflow to run the test262 tests on commits to main but not in pull requests. This is to keep this test non-blocking on PRs but lets us track pass rates over time
Lauren Tan committed
Nov 16, 2022 at 10:45 UTC
9058797e6a5a5a30a53676db3fc7f1e7e6f10a40
2 files changed
+25
-2
compiler/.github/workflows/test262.yml
new
+24
@@ -0,0 +1,24 @@
1
+name: test262
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+
7
+jobs:
8
+ forget:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ with:
13
+ submodules: true
14
+ - uses: actions/setup-node@v3
15
+ with:
16
+ node-version: 18.x
17
+ cache: "yarn"
18
+ cache-dependency-path: forget/yarn.lock
19
+ - run: yarn install --immutable --immutable-cache
20
+ working-directory: forget
21
+ - run: yarn build
22
+ working-directory: forget
23
+ - run: yarn test262:all
24
+ working-directory: forget
compiler/forget/package.json
+1
-2
@@ -15,8 +15,7 @@
15
"test": "yarn build && jest",
16
"ts:analyze-trace": "scripts/ts-analyze-trace.sh",
17
"test262": "yarn run --silent test262-harness --preprocessor=scripts/test262-preprocessor.js",
18
- "test262:all": "yarn run --silent test262 'test262/test/**/*.js'",
19
- "test262:ci": "yarn run --silent test262 --error-for-failures 'test262/test/**/*.js'"
18
+ "test262:all": "yarn run --silent test262 'test262/test/**/*.js'"
19
},
20
"repository": {
21
"type": "git",