style: Use double quotes #272
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 | |
# Runs the build scripts on PR and when PR is merged to main | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# Only re-run job when certain files have been changed in the PR | |
paths: | |
- 'src/**' | |
- 'public/**' | |
- '.github/workflows/build.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
# Run build script for [home/clinic] with video [on/off] in [windows/macOS/ubuntu] | |
strategy: | |
matrix: | |
setting: [home, clinic] | |
video: [on, off] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
exclude: | |
# Exclude video on in Ubuntu and macOS | |
- os: ubuntu-latest | |
setting: clinic | |
video: on | |
- os: ubuntu-latest | |
setting: home | |
video: on | |
- os: macOS-latest | |
setting: clinic | |
video: on | |
- os: macOS-latest | |
setting: home | |
video: on | |
steps: | |
# Rewrite "git:" repo urls to use "https:" instead, since GitHub Actions blocks port 9418 (as of Jan 2022). | |
# TODO: What repo is causing this issue? (event-marker dependency?) | |
# - name: Rewrite "git:" repo urls to use "https:" instead. | |
# run: git config --global url."https://github.com/".insteadOf "git://github.com/" | |
# Set up js package | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
cache-dependency-path: ./package.json | |
node-version: 18 | |
# Install dependencies | |
- name: ci | |
run: npm ci | |
# Load the needed environment variables | |
- name: Load .env file - .env.${{matrix.setting}} | |
uses: xom9ikk/[email protected] | |
with: | |
path: ./env | |
mode: ${{matrix.setting}} | |
- name: Load .env file - .env.video | |
if: matrix.video=='on' | |
uses: xom9ikk/[email protected] | |
with: | |
path: ./env | |
mode: video | |
# Build the project | |
- name: build | |
run: npm run build | |
# Test the project | |
- name: test | |
run: npm test | |
env: | |
CI: true |