refactor: Combine the test/rewrite halves of the add-a-debugLogging c… #104
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 and Test CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
# Stay consistent with package.json. | |
node-version: [~18.12] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Prepare Environment | |
run: | | |
corepack enable | |
yarn install | |
env: | |
CI: true | |
- name: Compile module code | |
run: | | |
yarn build | |
env: | |
CI: true | |
- name: Lint module code | |
run: | | |
yarn lint | |
env: | |
CI: true | |
- name: Run module tests | |
run: | | |
yarn test | |
env: | |
CI: true | |
- name: Build Companion package | |
run: | | |
yarn companion-module-build | |
env: | |
CI: true |