[unified-plugins] Fix stringification of nodes, which should fix the … #393
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
# $schema: https://json.schemastore.org/github-workflow.json | |
name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
defaults: | |
run: | |
shell: bash | |
env: | |
FORCE_COLOR: true | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | |
cancel-in-progress: true | |
permissions: read-all | |
jobs: | |
lint: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
if: github.repository == 'jcayzac/copepod-modules' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Check Workflow | |
uses: reviewdog/action-actionlint@v1 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: false | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install Dependencies | |
run: | | |
pnpm install | |
pnpm add -wD @microsoft/eslint-formatter-sarif | |
- name: Run ESLint | |
run: pnpm exec eslint -f @microsoft/eslint-formatter-sarif -o eslint.sarif || true | |
- name: Uploading SARIF | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: eslint.sarif | |
- name: Typechecking | |
run: pnpm check | |
- name: Building Packages | |
run: pnpm build | |
test: | |
if: github.repository == 'jcayzac/copepod-modules' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: [lts/*] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
fail-fast: false | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: false | |
- name: Setup Node ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: pnpm | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Running Tests | |
run: pnpm test |