Repository navigation
chore(deps): bump oxsecurity/megalinter/flavors/javascript from 10.1.0 to 10.2.0 in the gha-minor-patch group #284
Workflow file for this run
This file contains hidden or 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: | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| unit-tests: | |
| name: Unit tests | |
| runs-on: ubuntu-slim | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | |
| with: | |
| node-version-file: package.json | |
| - name: Configure sustainable npm | |
| uses: lowlydba/sustainable-npm@4cc1da285e5a589a7b3816122f791c21ec6ff3e6 # v4.0.0 | |
| - name: Install NPM dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm test | |
| a11y: | |
| name: Accessibility (WCAG 2.1 AA) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | |
| with: | |
| node-version-file: package.json | |
| - name: Configure sustainable npm | |
| uses: lowlydba/sustainable-npm@4cc1da285e5a589a7b3816122f791c21ec6ff3e6 # v4.0.0 | |
| - name: Install NPM dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Serve built site | |
| run: | | |
| npm run serve -- --port 3000 --no-open & | |
| npx --yes wait-on@9 --timeout 60000 http://localhost:3000/ | |
| - name: Run accessibility tests | |
| uses: lowlysre/pa11y-ci-action@84174759cd514bd3ea3bcaa30dc1798dde81f713 # v1.1.0 | |
| query-tests: | |
| name: DuckDB query smoke tests | |
| uses: $/.github/workflows/query-tests.yml | |
| permissions: | |
| contents: read | |
| are-we-good: | |
| name: are-we-good | |
| runs-on: ubuntu-slim | |
| needs: [unit-tests, a11y, query-tests] | |
| if: always() | |
| steps: | |
| - uses: lowlydba/are-we-good@6b10e5f2697555fbaf7f8f37ce38d4454c954a4c # v1.2.2 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |