Skip to content

Merge pull request #6 from Elegant996/dependabot/github_actions/softp… #45

Merge pull request #6 from Elegant996/dependabot/github_actions/softp…

Merge pull request #6 from Elegant996/dependabot/github_actions/softp… #45

Workflow file for this run

name: Test on MacOS
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
unit-bazel:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 14.3.1
- run: sudo wget https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-darwin-amd64 -O /usr/local/bin/bazel
- run: sudo chmod +x /usr/local/bin/bazel
- run: bazel test -s //...
- run: bazel build -s //...
- run: cp bazel-bin/rtorrent rtorrent
- uses: actions/upload-artifact@v2
with:
name: rtorrent-macos
path: rtorrent
end-to-end:
needs: unit-bazel
runs-on: macos-13
steps:
- name: Copy rTorrent built in previous job
uses: actions/download-artifact@v2
with:
name: rtorrent-macos
- name: Install rTorrent to /usr/local/bin
run: |
sudo mv rtorrent /usr/local/bin/
sudo chmod +x /usr/local/bin/rtorrent
- name: Checkout Flood
run: |
git clone --depth 1 --branch master https://github.com/jesec/flood.git .
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Build using performant NPM dependencies
run: |
npm i -g pnpm
pnpm i --frozen-lockfile
npm run build
- run: rtorrent || true
- name: End-to-end test rTorrent with Flood's test suite
uses: nick-invision/retry@v2
with:
max_attempts: 5
timeout_minutes: 30
command: npm t -- --selectProjects rtorrent --runTestsByPath server/routes/api/torrents.test.ts server/routes/api/client.test.ts || true