36 lines
600 B
YAML
36 lines
600 B
YAML
name: Test CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: runner
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Check PWD
|
|
run: |
|
|
echo $PWD
|
|
ls .
|
|
|
|
- name: Cache node_modules
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: node_modules
|
|
key: yarn-cache-${{ hashFiles('**/yarn.lock') }}
|
|
restore-keys: |
|
|
yarn-cache-
|
|
|
|
- name: Install Dependencies with yarn
|
|
run: |
|
|
yarn install --immutable
|
|
ls .
|
|
|
|
- name: Build Nestjs project
|
|
run: |
|
|
yarn build
|
|
ls . |