chore: stop contiuous deployment with cloudflare workers #38
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: CI | |
on: | |
- push | |
jobs: | |
test: | |
name: 🔍 Testing | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v3 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
with: | |
useLockFile: false | |
- name: 🎭 Install Playwright | |
run: npx playwright install --with-deps | |
- name: 📦 Build the worker | |
run: npm run build | |
- name: 💣 Run some tests | |
run: npm run test | |
lint: | |
name: ⬣ Linting | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v3 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
with: | |
useLockFile: false | |
- name: ✨ Code format check | |
run: npx prettier --check . | |
- name: ✅ Code linting | |
run: npx eslint . --ext .js,.mjs,.ts,.tsx |