diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml new file mode 100644 index 0000000000..879971822b --- /dev/null +++ b/.github/workflows/typescript.yml @@ -0,0 +1,29 @@ +name: TypeScript build CI + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: yarn install + - run: yarn test --coverage + - name: Upload coverage reports to Codecov with GitHub Action + uses: codecov/codecov-action@v3