Skip to content

Commit

Permalink
Merge pull request #1 from authts/add-ci
Browse files Browse the repository at this point in the history
add ci workflow
  • Loading branch information
pamapa committed Apr 22, 2024
2 parents dd33fbd + cd4df77 commit 9dd0246
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
env:
CI: true

- name: Cache incremental builds
uses: actions/cache@v3
with:
path: |
.eslintcache
**/node_modules/.cache
key: build-${{ github.head_ref }}-${{ github.sha }}
restore-keys: |
build-${{ github.head_ref }}-
build-refs/heads/main-
# root
#- run: |
# npm ci
# npm run build

- name: api
run: |
npm ci
npm run build
working-directory: api

- name: react
run: |
npm ci
npm run build
working-directory: react

0 comments on commit 9dd0246

Please sign in to comment.