|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - main |
| 10 | + |
| 11 | +jobs: |
| 12 | + lint: |
| 13 | + runs-on: ubuntu-latest |
| 14 | + steps: |
| 15 | + - name: Checkout code |
| 16 | + uses: actions/checkout@v5 |
| 17 | + |
| 18 | + - name: Setup Node.js and install dependencies |
| 19 | + uses: ./.github/actions/setup-node-and-install |
| 20 | + |
| 21 | + - name: Run lint |
| 22 | + run: yarn lint |
| 23 | + |
| 24 | + tests: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + steps: |
| 27 | + - name: Checkout code |
| 28 | + uses: actions/checkout@v5 |
| 29 | + |
| 30 | + - name: Setup Node.js and install dependencies |
| 31 | + uses: ./.github/actions/setup-node-and-install |
| 32 | + |
| 33 | + - name: Run tests |
| 34 | + # We use workerIdleMemoryLimit to work around a memory issue with node. |
| 35 | + # See https://github.com/facebook/jest/issues/11956 |
| 36 | + run: yarn test --coverage --logHeapUsage -w=4 --workerIdleMemoryLimit=1.5G |
| 37 | + |
| 38 | + - name: Upload coverage to Codecov |
| 39 | + uses: codecov/codecov-action@v5 |
| 40 | + with: |
| 41 | + fail_ci_if_error: false |
| 42 | + |
| 43 | + build-prod: |
| 44 | + runs-on: ubuntu-latest |
| 45 | + steps: |
| 46 | + - name: Checkout code |
| 47 | + uses: actions/checkout@v5 |
| 48 | + |
| 49 | + - name: Setup Node.js and install dependencies |
| 50 | + uses: ./.github/actions/setup-node-and-install |
| 51 | + |
| 52 | + - name: Build production |
| 53 | + run: yarn build-prod:quiet |
| 54 | + |
| 55 | + - name: Build symbolicator CLI |
| 56 | + run: yarn build-symbolicator-cli:quiet |
| 57 | + |
| 58 | + licence-check: |
| 59 | + runs-on: ubuntu-latest |
| 60 | + steps: |
| 61 | + - name: Checkout code |
| 62 | + uses: actions/checkout@v5 |
| 63 | + |
| 64 | + - name: Setup Node.js and install dependencies |
| 65 | + uses: ./.github/actions/setup-node-and-install |
| 66 | + |
| 67 | + - name: Run license check |
| 68 | + run: yarn license-check |
| 69 | + |
| 70 | + typecheck: |
| 71 | + runs-on: ubuntu-latest |
| 72 | + steps: |
| 73 | + - name: Checkout code |
| 74 | + uses: actions/checkout@v5 |
| 75 | + |
| 76 | + - name: Setup Node.js and install dependencies |
| 77 | + uses: ./.github/actions/setup-node-and-install |
| 78 | + |
| 79 | + - name: Run TypeScript check |
| 80 | + run: yarn ts |
| 81 | + |
| 82 | + alex: |
| 83 | + runs-on: ubuntu-latest |
| 84 | + steps: |
| 85 | + - name: Checkout code |
| 86 | + uses: actions/checkout@v5 |
| 87 | + |
| 88 | + - name: Setup Node.js and install dependencies |
| 89 | + uses: ./.github/actions/setup-node-and-install |
| 90 | + |
| 91 | + - name: Run alex |
| 92 | + run: yarn test-alex |
| 93 | + |
| 94 | + yarn-lock: |
| 95 | + runs-on: ubuntu-latest |
| 96 | + steps: |
| 97 | + - name: Checkout code |
| 98 | + uses: actions/checkout@v5 |
| 99 | + |
| 100 | + - name: Setup Node.js and install dependencies |
| 101 | + uses: ./.github/actions/setup-node-and-install |
| 102 | + |
| 103 | + - name: Check yarn.lock |
| 104 | + run: yarn test-lockfile |
| 105 | + |
| 106 | + shellcheck: |
| 107 | + runs-on: ubuntu-latest |
| 108 | + steps: |
| 109 | + - name: Checkout code |
| 110 | + uses: actions/checkout@v5 |
| 111 | + |
| 112 | + - name: Run ShellCheck |
| 113 | + uses: ludeeus/action-shellcheck@master |
| 114 | + with: |
| 115 | + scandir: './bin' |
0 commit comments