Skip to content

Commit

Permalink
Merge pull request #7 from henrikgrubbe/henrikgrubbe-patch-1
Browse files Browse the repository at this point in the history
Henrikgrubbe patch 1
  • Loading branch information
henrikgrubbe authored Nov 11, 2024
2 parents 467ef47 + d0d9069 commit 2239db0
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 99 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/lint-and-build-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Lint and build app

on:
pull_request:
branches: ['master']
paths: [ '.github/workflows/lint-and-build-app.yml', 'web/app/**' ]

jobs:
lint:
name: Lint app
runs-on: ubuntu-latest
defaults:
run:
working-directory: web/app
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
cache-dependency-path: web/app/package-lock.json

- name: Dependencies
run: npm ci

- name: Lint
run: npm run lint

build:
name: Build app
runs-on: ubuntu-latest
defaults:
run:
working-directory: web/app
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
cache-dependency-path: web/app/package-lock.json

- name: Dependencies
run: npm ci

- name: Build
run: npm run build
53 changes: 53 additions & 0 deletions .github/workflows/lint-and-build-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Lint and build server

on:
pull_request:
branches: ['master']
paths: [ '.github/workflows/lint-and-build-server.yml', 'web/server/**' ]

jobs:
lint:
name: Lint server
runs-on: ubuntu-latest
defaults:
run:
working-directory: web/server
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
cache-dependency-path: web/server/package-lock.json

- name: Dependencies
run: npm ci

- name: Lint
run: npm run lint

build:
name: Build server
runs-on: ubuntu-latest
defaults:
run:
working-directory: web/server
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
cache-dependency-path: web/server/package-lock.json

- name: Dependencies
run: npm ci

- name: Build
run: npm run build
99 changes: 0 additions & 99 deletions .github/workflows/lint-and-build.yml

This file was deleted.

0 comments on commit 2239db0

Please sign in to comment.