Build, Test, Lint #523
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, Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch to run on' | |
required: true | |
default: 'release-please--branches--main' | |
type: string | |
jobs: | |
Build-And-Test: | |
strategy: | |
matrix: | |
node-version: [18.x] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Checkout release branch | |
# If the job is triggered by a workflow_dispatch event, checkout the provided branch | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
run: git checkout ${{ github.event.inputs.branch }} | |
- id: setup-environment | |
uses: ./.github/actions/setup | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: yarn bundle | |
- run: yarn lint | |
- run: yarn format:check | |
- run: yarn test |