5b195826c4cf2502e7d408065872fdfd8a358602 #39
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: Continuous Integration (CI) | |
run-name: ${{ github.sha }} | |
on: | |
push: | |
paths: | |
- '**.ts' | |
- '**.js' | |
- '**.tsx' | |
- '**.jsx' | |
- '**.astro' | |
- 'src/content/*' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
lint-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: npm install | |
- name: Run Lint checks | |
run: npm run lint:check | |
astro-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: npm install | |
- name: Run Astro checks | |
run: npm run astro check | |
cypress-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: npm install | |
- name: Start up dev server and run Cypress test suite | |
run: npm run dev & npm run test |