Compare commits

...

4 Commits

Author SHA1 Message Date
Techno Tim
0e5fc534c8
Merge a27d783451 into d7aa9f99f5 2025-04-05 16:23:30 +02:00
Timothy Stewart
a27d783451 feat(ci): base cache key on package-lock.json 2025-02-23 22:27:13 -06:00
Timothy Stewart
cf1df9e6ed feat(ci): base cache key on package-lock.json 2025-02-21 23:27:11 -06:00
Timothy Stewart
61db806f05 feat(ci): GitHub action for pull requests 2025-02-21 22:34:16 -06:00

45
.github/workflows/pull-request.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: 'Pull Request'
on:
pull_request:
branches:
- dev
paths-ignore:
- .gitignore
- README.md
- LICENSE
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: v21.1.0
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Cache NPM dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-cache-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-cache-${{ runner.os }}-
- name: Install Dependencies and Build
run: |
npm ci
npx prisma generate
npm run build:prod
env:
CI: true
- name: Cache Prisma Binary
uses: actions/cache@v4
with:
path: ~/.npm/_npx
key: prisma-binary-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: prisma-binary-${{ runner.os }}-