Merge pull request #188 from Codeit-Part4-SFJs/sm/redirect #645
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 |