Build/Test #71
Workflow file for this run
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 | |
run-name: Build/Test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
workflow_call: | |
secrets: | |
ENV_KEY: | |
required: true | |
jobs: | |
build-and-test: | |
name: Build and Test the Application | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Using preferred node version | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Setup Project | |
shell: 'script -q -e -c "bash {0}"' | |
run: npm i -g pnpm typescript && ./install.sh -i --env local --env-key ${{ secrets.ENV_KEY }} | |
- name: Build, Start, Test | |
uses: cypress-io/github-action@v6 | |
with: | |
build: pnpm build | |
start: pnpm start | |
command: pnpm run ci |