Skip to content

Merge pull request #31 from isakhauge/dependabot/npm_and_yarn/postcss… #42

Merge pull request #31 from isakhauge/dependabot/npm_and_yarn/postcss…

Merge pull request #31 from isakhauge/dependabot/npm_and_yarn/postcss… #42

Workflow file for this run

name: Build and Test
on:
push:
branches:
- production
pull_request:
branches:
- production
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Set up Git and update production branch
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git checkout production
git fetch
git pull --no-rebase
- name: Install dependencies
run: bun install
- name: Build (Vite)
run: bun run build
- name: Test (Vitest)
run: bun run test
- name: Generate Code Coverage (Vitest)
run: bun run coverage
- name: Commit and push changes
run: |
git add .
git commit --allow-empty -m "Build, test, and coverage report"
git push