Skip to content

ci: use ubuntu 22

ci: use ubuntu 22 #15

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [22]
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v4.0.3
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Cache node_modules 📦
uses: actions/cache@v4.0.2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies 👨🏻‍💻
run: npm ci --prefer-offline --no-audit
- name: Run linter 👀
run: npm run lint
- name: Run prettier
run: npx prettier --check .
- name: Run tests 🧪
run: npm run test
- name: Build 🚚
if: success()
run: npm run generate
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
build_dir: dist
fqdn: 3-in-2.com
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}