Build Test Lint of 340/merge by @alishaevn #11
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' | |
run-name: Build Test Lint of ${{ github.ref_name }} by @${{ github.actor }} | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
type: boolean | |
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required: false | |
default: false | |
jobs: | |
build: | |
uses: scientist-softserv/actions/.github/workflows/[email protected] | |
secrets: inherit | |
with: | |
platforms: 'linux/amd64' | |
webTarget: web | |
# TODO(alishaevn): figure out how to get the below passing in github actions | |
# it may be different than our typical setups since we don't use docker locally | |
cypress: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cypress e2e | |
uses: cypress-io/github-action@v6 | |
with: | |
start: yarn start | |
wait-on: 'http://localhost:3000' | |
- name: Cypress component | |
uses: cypress-io/github-action@v6 | |
with: | |
component: true | |
eslint: | |
needs: build | |
uses: scientist-softserv/actions/.github/workflows/[email protected] | |
with: | |
lint_cmd: docker compose run web sh -c 'yarn && yarn lint' |