Skip to content

Build Test Lint of 340/merge by @alishaevn #8

Build Test Lint of 340/merge by @alishaevn

Build Test Lint of 340/merge by @alishaevn #8

Workflow file for this run

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:
# cypress:
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Cypress e2e
# uses: cypress-io/github-action@v6
# - name: Cypress component
# uses: cypress-io/github-action@v6
# with:
# component: true
start: yarn start
wait-on: 'http://web: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'