This repository was archived by the owner on Apr 23, 2025. It is now read-only.
Merge pull request #72 from Scaffold-Stark/fix/update-lock [minor] #127
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Simple Node js CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [lts/*] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Setup node env | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "yarn" | |
- name: Install dependencies (Next.js) | |
run: yarn install --immutable | |
working-directory: ./ | |
- name: Setup environment | |
run: | | |
echo "${{ secrets.ENV_GLOBAL }}" > .env | |
working-directory: ./ | |
- name: Build Next.js project | |
run: yarn build | |
working-directory: ./ |