mirror of
https://github.com/actions-rs/toolchain.git
synced 2024-11-14 05:26:34 +02:00
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
name: Continuous integration
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Create npm configuration
|
|
run: echo "//npm.pkg.github.com/:_authToken=${token}" >> ~/.npmrc
|
|
env:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- uses: actions/checkout@v1
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run test
|
|
|
|
install_stable:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: ./
|
|
with:
|
|
toolchain: stable
|
|
|
|
install_nightly:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: ./
|
|
with:
|
|
profile: minimal
|
|
toolchain: nightly
|
|
components: rustfmt, clippy
|
|
|
|
install_stable_in_docker:
|
|
runs-on: ubuntu-latest
|
|
container: ubuntu:latest # Docker image, not the GitHub Actions VM
|
|
steps:
|
|
# `rustup` will need `curl` or `wget` later
|
|
- run: apt-get update && apt-get install -y curl
|
|
- uses: actions/checkout@v1
|
|
- uses: ./
|
|
with:
|
|
toolchain: stable
|
|
|
|
install_stable_through_rust_toolchain_file:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- run: echo "stable" > ./rust-toolchain
|
|
- uses: ./
|