Merge pull request #38 from KyeOnDiscord/main #208
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: "CI" | |
on: ["push", "pull_request"] | |
jobs: | |
test: | |
name: "Test Code (Node ${{ matrix.node }})" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
node: ["18", "20", "22"] | |
fail-fast: false | |
steps: | |
- name: "Checkout Repository" | |
uses: "actions/checkout@v2" | |
- name: "Set Up NodeJS" | |
uses: "actions/setup-node@v2" | |
with: | |
node-version: ${{ matrix.node }} | |
- name: "Install Dependencies" | |
run: "npm ci" | |
- name: "Lint Code" | |
if: ${{ matrix.node == '20' }} | |
run: "npx eslint -f .github/workflows/formatter.js src/**/*.ts || :" | |
- name: "Compile Code" | |
run: "npx tsc" | |
- name: "Run Tests" | |
run: "npx jest" |