Skip to content

Fix failing tests.

Fix failing tests. #5

Workflow file for this run

name: Test and lint
on: push
env:
NODE_ENV: development
jobs:
test-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint:src
- name: Test
run: npm run test
- name: Build
run: npm run build
compile:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Trigger the build
uses: actions/github-script@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: workflows } = await github.actions.listRepoWorkflows();
const workflowIdToTrigger = workflows.find(workflow => workflow.name === 'Compile').id;
await github.actions.createWorkflowDispatch({
workflow_id: workflowIdToTrigger,
});