Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
placintaalexandru committed Nov 1, 2023
1 parent 51553e3 commit 51761b3
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Check
on:
- pull_request
- push:
branches:
- main
permissions:
contents: read
concurrency:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI Test - components
name: CI Test - components input
on:
- pull_request
- push:
branches:
- main
jobs:
install_on_runner:
runs-on: ${{ matrix.os }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI Test - install as default toolchain
name: CI Test - default input
on:
- pull_request
- push:
branches:
- main
jobs:
install_on_runner:
runs-on: ${{ matrix.os }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI Test - stable & nightly
name: CI Test - install stable & nightly
on:
- pull_request
- push:
branches:
- main
jobs:
install_on_runner:
runs-on: ${{ matrix.os }}
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/test_override_input.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI Test - override input
on:
- pull_request
- push:
branches:
- main
jobs:
install_on_runner:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
toolchain:
- 1.70.0
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use myself
id: toolchain
uses: ./
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true

- name: Test toolchain version
run: |
test "${{ steps.toolchain.outputs.rustc }}" = "${{ matrix.toolchain }}"
install_in_docker:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- 1.70.0
# Docker image, not the GitHub Actions VM
container: ubuntu:latest
steps:
- name: Checkout
uses: actions/checkout@v4

# `rustup` will need `curl` or `wget` later
- name: Install packages
run: apt-get update && apt-get install -y curl

- name: Use myself
id: toolchain
uses: ./
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true

- name: Test toolchain version
run: |
test "${{ steps.toolchain.outputs.rustc }}" = "${{ matrix.toolchain }}"
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI Test - targets
name: CI Test - targets input
on:
- pull_request
- push:
branches:
- main
jobs:
install_on_runner:
runs-on: ${{ matrix.os }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI Test - toolchain version
on:
- pull_request
- push:
branches:
- main
jobs:
install_on_runner:
runs-on: ${{ matrix.os }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Unit Tests
on:
- pull_request
- push:
branches:
- main
permissions:
contents: read
concurrency:
Expand Down

0 comments on commit 51761b3

Please sign in to comment.