|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + types: |
| 6 | + - opened |
| 7 | + - synchronize |
| 8 | + |
| 9 | +concurrency: |
| 10 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} |
| 11 | + cancel-in-progress: true |
| 12 | + |
| 13 | +jobs: |
| 14 | + lint-and-format: |
| 15 | + name: Lint and Format |
| 16 | + runs-on: ubuntu-latest |
| 17 | + steps: |
| 18 | + - name: Checkout Repository |
| 19 | + uses: actions/checkout@v4 |
| 20 | + - name: Setup Node.js |
| 21 | + uses: actions/setup-node@v4 |
| 22 | + with: |
| 23 | + cache: yarn |
| 24 | + node-version: 22 |
| 25 | + - name: Install Dependencies |
| 26 | + run: yarn install --frozen-lockfile |
| 27 | + - name: Check Linting |
| 28 | + run: yarn lint |
| 29 | + - name: Check Formatting |
| 30 | + run: yarn format:check |
| 31 | + |
| 32 | + test: |
| 33 | + name: Tests (Node ${{ matrix.node-version }} - WDS ${{ matrix.wds-version }}) |
| 34 | + runs-on: ubuntu-latest |
| 35 | + strategy: |
| 36 | + fail-fast: false |
| 37 | + matrix: |
| 38 | + node-version: |
| 39 | + - '18' |
| 40 | + - '20' |
| 41 | + - '22' |
| 42 | + wds-version: |
| 43 | + - '4' |
| 44 | + - '5' |
| 45 | + steps: |
| 46 | + - name: Checkout Repository |
| 47 | + uses: actions/checkout@v4 |
| 48 | + - name: Setup Node.js |
| 49 | + uses: actions/setup-node@v4 |
| 50 | + with: |
| 51 | + cache: yarn |
| 52 | + node-version: ${{ matrix.node-version }} |
| 53 | + - name: Install Dependencies |
| 54 | + run: yarn install --frozen-lockfile |
| 55 | + - name: Run Tests |
| 56 | + run: yarn test --testPathIgnorePatterns conformance |
| 57 | + env: |
| 58 | + BROWSER: false |
| 59 | + WDS_VERSION: ${{ matrix.wds-version }} |
| 60 | + |
| 61 | + conformance: |
| 62 | + name: Conformance (Node ${{ matrix.node-version }} - WDS ${{ matrix.wds-version }}) |
| 63 | + runs-on: ubuntu-latest |
| 64 | + strategy: |
| 65 | + fail-fast: false |
| 66 | + matrix: |
| 67 | + node-version: |
| 68 | + - '18' |
| 69 | + - '20' |
| 70 | + - '22' |
| 71 | + wds-version: |
| 72 | + - '4' |
| 73 | + - '5' |
| 74 | + steps: |
| 75 | + - name: Checkout Repository |
| 76 | + uses: actions/checkout@v4 |
| 77 | + - name: Setup Node.js |
| 78 | + uses: actions/setup-node@v4 |
| 79 | + with: |
| 80 | + cache: yarn |
| 81 | + node-version: ${{ matrix.node-version }} |
| 82 | + - name: Install Dependencies |
| 83 | + run: yarn install --frozen-lockfile |
| 84 | + - name: Disable AppArmor |
| 85 | + run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns |
| 86 | + - name: Run Conformance Tests |
| 87 | + run: yarn test conformance |
| 88 | + env: |
| 89 | + WDS_VERSION: ${{ matrix.wds-version }} |
0 commit comments