Bump @vitest/coverage-v8 from 2.1.2 to 2.1.4 #266
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: Build and Deploy | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Yarn | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "yarn" | |
- name: Install dependencies | |
run: | | |
yarn install | |
# - name: Lint | |
# run: yarn lint | |
- name: Test | |
run: yarn test:ci | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
file: coverage/clover.xml | |
- name: Build | |
env: | |
VITE_WHAT3WORDS_API_KEY: ${{ secrets.VITE_WHAT3WORDS_API_KEY }} | |
VITE_OS_DATAHUB_API_KEY: ${{ secrets.VITE_OS_DATAHUB_API_KEY }} | |
VITE_GEOGRAPH_API_KEY: ${{ secrets.VITE_GEOGRAPH_API_KEY }} | |
VITE_GOOGLE_ANALYTICS_MEASUREMENT_ID: ${{ secrets.VITE_GOOGLE_ANALYTICS_MEASUREMENT_ID }} | |
run: yarn build && cp ./dist/index.html ./dist/404.html | |
- name: Store dist files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist-files | |
path: ./dist/ | |
deploy: | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' | |
steps: | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: dist-files | |
path: ./dist/ | |
- name: Upload to Github Pages | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./dist | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |