ci-fix
This commit is contained in:
parent
4f91f9830b
commit
402f66468b
|
@ -1,15 +1,9 @@
|
||||||
name: "deploy"
|
name: "deploy"
|
||||||
|
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- dev
|
|
||||||
- feature/email-templates
|
|
||||||
- feature/biome
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
Linting:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -18,25 +12,19 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Run check
|
- name: Lint styles
|
||||||
run: npm run check
|
run: npm run lint:styles
|
||||||
|
|
||||||
- name: Run check types
|
- name: Check types
|
||||||
run: npm run typecheck
|
run: npm run typecheck
|
||||||
|
|
||||||
quality:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
|
|
||||||
- name: Install Biome
|
- name: Install Biome
|
||||||
run: npm install --global --save-exact @biomejs/biome
|
run: npm install --global --save-exact @biomejs/biome
|
||||||
|
|
||||||
- name: Run Biome
|
- name: Lint with Biome
|
||||||
run: npx biome ci .
|
run: npx biome ci .
|
||||||
|
|
||||||
tests_e2e:
|
Playwright:
|
||||||
name: Run end-to-end tests
|
name: Run end-to-end tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -49,14 +37,15 @@ jobs:
|
||||||
- name: Run Playwright Test
|
- name: Run Playwright Test
|
||||||
run: npx playwright test
|
run: npx playwright test
|
||||||
|
|
||||||
push:
|
|
||||||
|
Github:
|
||||||
needs: test_with_playwright
|
needs: test_with_playwright
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
|
|
||||||
update_mailgun_template:
|
Mailgun:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Update templates on Mailgun
|
name: Update templates on Mailgun
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/feature/email-templates'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/feature/email-templates'
|
||||||
|
|
36
.github/workflows/node-ci.yml
vendored
36
.github/workflows/node-ci.yml
vendored
|
@ -3,16 +3,36 @@ name: CI
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
Linting:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v3
|
||||||
with:
|
|
||||||
node-version: '18'
|
|
||||||
|
|
||||||
- name: Install deps
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Check
|
- name: Lint styles
|
||||||
run: npm run check
|
run: npm run lint:styles
|
||||||
|
|
||||||
|
- name: Check types
|
||||||
|
run: npm run typecheck
|
||||||
|
|
||||||
|
- name: Install Biome
|
||||||
|
run: npm install --global --save-exact @biomejs/biome
|
||||||
|
|
||||||
|
- name: Lint with Biome
|
||||||
|
run: npx biome ci .
|
||||||
|
|
||||||
|
Playwright:
|
||||||
|
name: Run end-to-end tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Install playwright browsers
|
||||||
|
run: npx playwright install --with-deps
|
||||||
|
- name: Run Playwright Test
|
||||||
|
run: npx playwright test
|
||||||
|
|
Loading…
Reference in New Issue
Block a user