feat: add support for common-js module #508
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, Test, Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
repository_dispatch: | |
types: [ci_validation_trigger] | |
jobs: | |
Build-And-Test: | |
strategy: | |
matrix: | |
node-version: [18.x] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Checkout release branch | |
# If the job is triggered by a repository_dispatch event, checkout the release branch | |
if: ${{ github.github.event.event_type == 'ci_validation_trigger' }} | |
run: git checkout release-please--branches--main | |
- id: setup-environment | |
uses: ./.github/actions/setup | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: yarn bundle | |
- run: yarn lint | |
- run: yarn format:check | |
- run: yarn test |