Make sure checks also run on main
This commit is contained in:
parent
136760dfa1
commit
292d4e2c9a
14
.github/workflows/check_api.yml
vendored
14
.github/workflows/check_api.yml
vendored
|
|
@ -3,8 +3,14 @@ name: API Checks
|
|||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- api/**
|
||||
- .github/workflows/check_api.yml
|
||||
- api/**
|
||||
- .github/workflows/check_api.yml
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- api/**
|
||||
- .github/workflows/check_api.yml
|
||||
|
||||
# Fail on warnings
|
||||
env:
|
||||
|
|
@ -19,5 +25,5 @@ jobs:
|
|||
working-directory: api
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: cargo clippy
|
||||
- uses: actions/checkout@v3
|
||||
- run: cargo clippy
|
||||
|
|
|
|||
45
.github/workflows/check_frontend.yml
vendored
45
.github/workflows/check_frontend.yml
vendored
|
|
@ -3,9 +3,16 @@ name: Frontend Checks
|
|||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- frontend/**
|
||||
- .github/workflows/check_frontend.yml
|
||||
- '!frontend/src/i18n/locales/**'
|
||||
- frontend/**
|
||||
- .github/workflows/check_frontend.yml
|
||||
- '!frontend/src/i18n/locales/**'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- frontend/**
|
||||
- .github/workflows/check_frontend.yml
|
||||
- '!frontend/src/i18n/locales/**'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
|
@ -16,14 +23,14 @@ jobs:
|
|||
working-directory: frontend
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
cache-dependency-path: '**/yarn.lock'
|
||||
- run: yarn install --immutable
|
||||
- run: yarn lint --max-warnings 0
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
cache-dependency-path: '**/yarn.lock'
|
||||
- run: yarn install --immutable
|
||||
- run: yarn lint --max-warnings 0
|
||||
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -33,11 +40,11 @@ jobs:
|
|||
working-directory: frontend
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
cache-dependency-path: '**/yarn.lock'
|
||||
- run: yarn install --immutable
|
||||
- run: yarn tsc
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
cache-dependency-path: '**/yarn.lock'
|
||||
- run: yarn install --immutable
|
||||
- run: yarn tsc
|
||||
|
|
|
|||
16
.github/workflows/deploy_api.yml
vendored
16
.github/workflows/deploy_api.yml
vendored
|
|
@ -3,10 +3,10 @@ name: Deploy API
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths:
|
||||
- api/**
|
||||
- .github/workflows/deploy_api.yml
|
||||
- api/**
|
||||
- .github/workflows/deploy_api.yml
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
|
|
@ -21,8 +21,8 @@ jobs:
|
|||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: superfly/flyctl-actions/setup-flyctl@master
|
||||
- run: flyctl deploy --remote-only
|
||||
env:
|
||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
||||
- uses: actions/checkout@v3
|
||||
- uses: superfly/flyctl-actions/setup-flyctl@master
|
||||
- run: flyctl deploy --remote-only
|
||||
env:
|
||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
||||
|
|
|
|||
34
.github/workflows/deploy_frontend.yml
vendored
34
.github/workflows/deploy_frontend.yml
vendored
|
|
@ -3,10 +3,10 @@ name: Deploy Frontend
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths:
|
||||
- frontend/**
|
||||
- .github/workflows/deploy_frontend.yml
|
||||
- frontend/**
|
||||
- .github/workflows/deploy_frontend.yml
|
||||
|
||||
env:
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||
|
|
@ -22,17 +22,17 @@ jobs:
|
|||
working-directory: frontend
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: yarn
|
||||
cache-dependency-path: '**/yarn.lock'
|
||||
- name: Install Vercel CLI
|
||||
run: npm install --global vercel@latest
|
||||
- name: Pull Vercel Environment Information
|
||||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- name: Build Project Artifacts
|
||||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- name: Deploy Project Artifacts to Vercel
|
||||
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: yarn
|
||||
cache-dependency-path: '**/yarn.lock'
|
||||
- name: Install Vercel CLI
|
||||
run: npm install --global vercel@latest
|
||||
- name: Pull Vercel Environment Information
|
||||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- name: Build Project Artifacts
|
||||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||
- name: Deploy Project Artifacts to Vercel
|
||||
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue