Bump rimraf from 5.0.5 to 5.0.7 #112
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: 'Verify Pull Request' | |
on: | |
pull_request: | |
branches: | |
- main | |
- release-* | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
unit_tests_linux: | |
name: Verify PR - Tests (Linux) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Extract node version from package.json | |
uses: sergeysova/jq-action@v2 | |
id: node_version | |
with: | |
cmd: jq .engines.node package.json -r | sed -e 's/"//g' | sed -e 's/>=//g' | |
- name: Extract yarn version from package.json | |
uses: sergeysova/jq-action@v2 | |
id: yarn_version | |
with: | |
cmd: jq .engines.yarn package.json -r | sed -e 's/"//g' | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '${{ steps.node_version.outputs.value }}' | |
- name: Use Yarn | |
run: corepack enable && corepack prepare --activate yarn@${{ steps.yarn_version.outputs.value }} | |
- name: Install deps | |
run: yarn | |
- name: Run all unit tests | |
run: yarn nx affected --base=origin/main --head=HEAD --target=test/unit --parallel --verbose --exclude='*,!tag:linux' | |
publish_images: | |
name: Package | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
env: | |
REGISTRY: ghcr.io | |
OWNER: andrew-codes | |
REPO_NAME: playnite-web | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Extract major release version from package.json | |
uses: sergeysova/jq-action@v2 | |
id: major_release_version | |
with: | |
cmd: jq .version package.json -r | cut -d. -f1 | |
- name: Extract node version from package.json | |
uses: sergeysova/jq-action@v2 | |
id: node_version | |
with: | |
cmd: jq .engines.node package.json -r | sed -e 's/"//g' | sed -e 's/>=//g' | |
- name: Extract yarn version from package.json | |
uses: sergeysova/jq-action@v2 | |
id: yarn_version | |
with: | |
cmd: jq .engines.yarn package.json -r | sed -e 's/"//g' | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '${{ steps.node_version.outputs.value }}' | |
- name: Use Yarn | |
run: corepack enable && corepack prepare --activate yarn@${{ steps.yarn_version.outputs.value }} | |
- name: Install deps | |
run: yarn | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Publish apps | |
run: yarn nx affected --base=origin/main --head=HEAD --target=package --parallel --verbose --exclude='*,!tag:linux' | |
env: | |
NODE_ENV: production | |
DEBUG: 'playnite-web/*' | |
PLATFORM: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 | |
unit_tests_windows: | |
name: Verify PR - Tests (Windows) | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install jq | |
run: curl -L -o jq.exe https://github.com/stedolan/jq/releases/latest/download/jq-win64.exe | |
- name: Read Node version | |
run: echo "value=$(./jq.exe -r .engines.node package.json | sed -e 's/>=//g' | sed -e 's/"//g')" >> $GITHUB_OUTPUT | |
shell: bash | |
id: node_version | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '${{ steps.node_version.outputs.value }}' | |
- name: Read Yarn version | |
run: echo "value=$(./jq.exe -r .engines.yarn package.json | sed -e 's/"//g')" >> $GITHUB_OUTPUT | |
shell: bash | |
id: yarn_version | |
- name: Enable yarn | |
run: corepack enable | |
- run: corepack prepare --activate yarn@${{ steps.yarn_version.outputs.value}} | |
- name: Install deps | |
run: yarn | |
- name: Run all unit tests | |
run: yarn nx affected --base=origin/main --head=HEAD --target=test/unit --parallel --verbose --exclude='*,!tag:windows' | |
build_extension: | |
name: Build extension | |
runs-on: windows-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Install jq | |
run: curl -L -o jq.exe https://github.com/stedolan/jq/releases/latest/download/jq-win64.exe | |
- name: Read Node version | |
run: echo "value=$(./jq.exe -r .engines.node package.json | sed -e 's/>=//g' | sed -e 's/"//g')" >> $GITHUB_OUTPUT | |
shell: bash | |
id: node_version | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '${{ steps.node_version.outputs.value }}' | |
- name: Read Yarn version | |
run: echo "value=$(./jq.exe -r .engines.yarn package.json | sed -e 's/"//g')" >> $GITHUB_OUTPUT | |
shell: bash | |
id: yarn_version | |
- name: Enable yarn | |
run: corepack enable | |
- run: corepack prepare --activate yarn@${{ steps.yarn_version.outputs.value }} | |
- name: Install deps | |
run: yarn | |
- name: Build extension | |
run: yarn nx affected --base=origin/main --head=HEAD --target=build --parallel --verbose --exclude='*,!tag:windows' | |
env: | |
NODE_ENV: production |