Node script to copy projects from staging or prod #837
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 and Test | |
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#on | |
on: | |
pull_request: | |
env: | |
DOCKER_BUILDKIT: 1 | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
require-label: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
outputs: | |
status: ${{ steps.check-labels.outputs.status }} | |
steps: | |
- uses: mheap/github-action-required-labels@v3 | |
id: check-labels | |
with: | |
mode: exactly | |
count: 1 | |
labels: "bug, feature, engineering, security fix, testing" | |
- uses: mheap/github-action-required-labels@v3 | |
with: | |
mode: exactly | |
count: 0 | |
labels: "do not merge" | |
unit-tests: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
pull-requests: write | |
steps: | |
- | |
uses: actions/checkout@v3 | |
- | |
name: Unit Tests | |
run: make unit-tests-ci | |
- | |
name: Publish Test Results | |
uses: docker://ghcr.io/enricomi/publish-unit-test-result-action:v2 | |
if: always() | |
with: | |
check_name: Unit Test Results | |
github_token: ${{ github.token }} | |
junit_files: PhpUnitTests.xml | |
e2e-tests: | |
uses: ./.github/workflows/e2e-tests.yml | |
check-code-formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@v3 | |
- | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.14.0" | |
cache: "npm" | |
- | |
name: Run prettier check | |
run: | | |
npx prettier -v | |
npx prettier --check . |