Skip to content

Commit

Permalink
fix: fix github workflows not matching proper apps
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Oct 30, 2024
1 parent a79f753 commit c382ef7
Show file tree
Hide file tree
Showing 15 changed files with 2,017,315 additions and 59,344 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
name: Test, Lint & Type Check
name: Backend

on:
push:
paths:
- "backend/**"
- ".github/workflows/code_check_backend.yml"

defaults:
run:
working-directory: backend

jobs:
test:
runs-on: ubuntu-latest
# Uncomment once tests are implemented
# test:
# runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
# steps:
# - name: Checkout code
# uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
# - name: Cache dependencies
# uses: actions/cache@v2
# with:
# path: node_modules
# key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}

- name: Set up Node.js & Install dependencies
uses: actions/setup-node@v4
# - name: Set up Node.js & Install dependencies
# uses: actions/setup-node@v4

- run: npm ci
# - run: npm ci

# - name: 🧪 Test
# run: |
# npm run test

- name: 🧪 Test
run: |
npm run test
lint:
runs-on: ubuntu-latest

Expand All @@ -46,6 +55,7 @@ jobs:
- name: 👕 Lint
run: |
npm run lint
type_check:
runs-on: ubuntu-latest

Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/code_check_frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Frontend

on:
push:
paths:
- "frontend/**"
- ".github/workflows/code_check_frontend.yml"

defaults:
run:
working-directory: frontend

jobs:
# Uncomment once tests are implemented
# test:
# runs-on: ubuntu-latest

# steps:
# - name: Checkout code
# uses: actions/checkout@v4

# - name: Cache dependencies
# uses: actions/cache@v2
# with:
# path: node_modules
# key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}

# - name: Set up Node.js & Install dependencies
# uses: actions/setup-node@v4

# - run: npm ci

# - name: 🧪 Test
# run: |
# npm run test

lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}

- name: Set up Node.js
uses: actions/setup-node@v4

- run: npm ci

- name: 👕 Lint
run: |
npm run lint
type_check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}

- name: Set up Node.js
uses: actions/setup-node@v4

- run: npm ci

- name: 🔍 Type Check
run: |
npm run tsc
Loading

0 comments on commit c382ef7

Please sign in to comment.