Re-add UI from monorepo #31
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: CI | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
test: | |
name: Testing on ${{ matrix.platform }} with Node.js ${{ matrix.node-version }} | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
# @see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
# macos-12 = intel | |
# macos-14 = M1 (arm) | |
platform: [ubuntu-22.04, macos-12, macos-14, windows-2022] | |
node-version: [18] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Node.js ${{ matrix.node-version }} environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Run linter | |
run: yarn run lint | |
- name: Identify misconfigurations and security anti-patterns | |
uses: doyensec/electronegativity-action@v2 | |
- name: Upload report | |
uses: github/codeql-action/upload-sarif@v1 | |
with: | |
sarif_file: ../electronegativity_results | |
- name: Build | |
run: yarn run build | |
# Uncomment if necessary | |
# For example to inspect the build applications | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifact_${{ matrix.platform }} | |
path: out/make | |
if-no-files-found: error |