Skip to content

Add testing on Windows, macOS, and R 4.2 #1

Add testing on Windows, macOS, and R 4.2

Add testing on Windows, macOS, and R 4.2 #1

Workflow file for this run

name: "Testing - Linux"
on:
push:
branches:
- main
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
name: "Unit Tests on Linux (rust: ${{ matrix.config.rust }})"
strategy:
fail-fast: false
matrix:
config:
- { rust: 'stable' }
- { rust: 'nightly' }
timeout-minutes: 30
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
if: matrix.config.rust == 'nightly'
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Setup Build Environment
run: |
sudo apt-get update
sudo apt-get install -y build-essential r-base-dev libsodium-dev
- name: Build
id: build
run: |
cargo build --verbose
# Unit tests "automatically" find and set `R_HOME` if it isn't set by
# calling `R RHOME`. See the testing version of `start_r()` for this.
- name: Run Unit Tests
id: build

Check failure on line 46 in .github/workflows/test-linux.yml

View workflow run for this annotation

GitHub Actions / Testing - Linux

Invalid workflow file

The workflow is not valid. .github/workflows/test-linux.yml (Line: 46, Col: 13): The identifier 'build' may not be used more than once within the same scope.
run: |
cargo test --verbose