Skip to content

Use " instead if ' in CI yaml files and use fail-fast. true everywhere #4225

Use " instead if ' in CI yaml files and use fail-fast. true everywhere

Use " instead if ' in CI yaml files and use fail-fast. true everywhere #4225

name: mediasoup-worker
on: [push, pull_request]
concurrency:
# Cancel a currently running workflow from the same PR, branch or tag when a
# new workflow is triggered.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ci:
strategy:
fail-fast: true
matrix:
build:
- os: ubuntu-20.04
cc: gcc
cxx: g++
- os: ubuntu-20.04
cc: clang
cxx: clang++
- os: ubuntu-22.04
cc: gcc
cxx: g++
- os: ubuntu-22.04
cc: clang
cxx: clang++
- os: macos-12
cc: gcc
cxx: g++
- os: macos-12
cc: clang
cxx: clang++
- os: windows-2022
cc: cl
cxx: cl
# A single Node.js version should be fine for C++.
node:
- 20
runs-on: ${{ matrix.build.os }}
env:
CC: ${{ matrix.build.cc }}
CXX: ${{ matrix.build.cxx }}
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: "true"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Configure cache
uses: actions/cache@v3
with:
path: |
~/.npm
key: ${{ matrix.build.os }}-node-${{matrix.build.cc}}-${{ hashFiles("**/package.json") }}

Check failure on line 63 in .github/workflows/mediasoup-worker.yaml

View workflow run for this annotation

GitHub Actions / mediasoup-worker

Invalid workflow file

The workflow is not valid. .github/workflows/mediasoup-worker.yaml (Line: 63, Col: 16): Unexpected symbol: '"**/package'. Located at position 11 within expression: hashFiles("**/package.json")
restore-keys: |
${{ matrix.build.os }}-node-${{matrix.build.cc}}-
# We need to install pip invoke manually.
- name: pip3 install invoke
run: pip3 install invoke
# We need to install npm deps of worker/scripts/package.json.
- name: npm ci --prefix worker/scripts
run: npm ci --prefix worker/scripts --foreground-scripts
# TODO: Maybe fix this one day.
if: runner.os != "Windows"
- name: invoke -r worker lint
run: invoke -r worker lint
# TODO: Maybe fix this one day.
if: runner.os != "Windows"
- name: invoke -r worker mediasoup-worker
run: invoke -r worker mediasoup-worker
- name: invoke -r worker test
run: invoke -r worker test
# TODO: Maybe fix this one day.
if: runner.os != "Windows"