Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 25f29ac

Browse files
committedJun 26, 2024·
chore: move CI to GHA CodeBuild Runners
1 parent 4265768 commit 25f29ac

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
 

‎.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# This workflow performs tests in Java.
2+
name: Library Java tests
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
testCI:
8+
strategy:
9+
matrix:
10+
node: [16, 18, 20]
11+
fail-fast: false
12+
runs-on: codebuild-AWS-ESDK-JS-Release-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-5.0-large
13+
permissions:
14+
id-token: write
15+
contents: read
16+
defaults:
17+
run:
18+
shell: bash
19+
steps:
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{matrix.node}}
23+
- name: Test Node ${{matrix.node}}
24+
env:
25+
NODE_OPTIONS: "--max-old-space-size=4096"
26+
run: |
27+
- npm ci --unsafe-perm
28+
- npm run build
29+
- npm run coverage-node
30+
- name: Test compliance
31+
if: ${{ matrix.node == 18 }}
32+
env:
33+
NODE_OPTIONS: "--max-old-space-size=4096"
34+
run: |
35+
- npm ci --unsafe-perm
36+
- npm run lint
37+
- npm run test_conditions
38+
- name: Run Test Vectors Node ${{matrix.node}}
39+
env:
40+
NODE_OPTIONS: "--max-old-space-size=4096"
41+
NPM_CONFIG_UNSAFE_PERM: true
42+
PUBLISH_LOCAL: true
43+
run: |
44+
- npm ci --unsafe-perm
45+
- npm run build
46+
- npm run verdaccio-publish
47+
- npm run verdaccio-node-decrypt
48+
- npm run verdaccio-node-encrypt
49+
- name: Run Test Vectors Browser Node 18
50+
if: ${{ matrix.node == 18 }}
51+
env:
52+
NODE_OPTIONS: "--max-old-space-size=4096"
53+
NPM_CONFIG_UNSAFE_PERM: true
54+
PUBLISH_LOCAL: true
55+
run: |
56+
- npm ci --unsafe-perm
57+
- npm run build
58+
- npm run verdaccio-publish
59+
- npm run verdaccio-browser-decrypt
60+
- npm run verdaccio-browser-encrypt

0 commit comments

Comments
 (0)
Please sign in to comment.