Skip to content

Build, Test, Lint

Build, Test, Lint #523

Workflow file for this run

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