Merge pull request #171 from Codeit-Part4-SFJs/sh/addModal #595
This file contains 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: Build test | |
on: | |
push: | |
pull_request: | |
jobs: | |
build-test: | |
name: Next build test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get Env | |
run: | | |
touch ./.env.production | |
echo "${{secrets.PRODUCTION_ENV}}" > ./.env.production | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install | |
- name: Build project | |
run: yarn build |