mirror of
https://github.com/Arcadia-Solutions/arcadia.git
synced 2025-12-20 00:39:34 -06:00
update workflows to trigger on path changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: running build
|
name: backend jobs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,12 +7,15 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths: # comment this out if you are updating actions
|
||||||
|
- 'backend/**'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-backend:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: rust:1.86-bullseye
|
container: rust:1.86-bullseye
|
||||||
defaults:
|
defaults:
|
||||||
@@ -49,22 +52,3 @@ jobs:
|
|||||||
- name: Ensure schema and query metadata are in sync
|
- name: Ensure schema and query metadata are in sync
|
||||||
run: cargo sqlx prepare --check
|
run: cargo sqlx prepare --check
|
||||||
|
|
||||||
lint-format-frontend:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ./frontend
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 22
|
|
||||||
cache: 'npm'
|
|
||||||
cache-dependency-path: frontend/package-lock.json
|
|
||||||
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run lint
|
|
||||||
- run: npm run check-format
|
|
||||||
|
|
||||||
34
.github/workflows/frontend.yml
vendored
Normal file
34
.github/workflows/frontend.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: frontend jobs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths: # comment this out if you are updating actions and need to test
|
||||||
|
- 'frontend/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-lint-format:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./frontend
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- run: git diff --name-status -- path/to/directory/
|
||||||
|
|
||||||
|
- name: Setup
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: 'npm'
|
||||||
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run lint
|
||||||
|
- run: npm run check-format
|
||||||
|
|
||||||
2
.github/workflows/publish_images.yaml
vendored
2
.github/workflows/publish_images.yaml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Publish container image
|
name: publish container image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
|
|||||||
Reference in New Issue
Block a user