Skip to content

Commit

Permalink
Add 4th test
Browse files Browse the repository at this point in the history
  • Loading branch information
placintaalexandru committed Oct 28, 2023
1 parent 31c477d commit 5a6df05
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test_components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
uses: actions/checkout@v4

- name: Use myself
id: toolchain
uses: ./
with:
toolchain: nightly
Expand All @@ -25,7 +24,7 @@ jobs:
components: clippy

- name: Test clippy exists
run: cargo clippy -h > /dev/null
run: cargo clippy -V

install_in_docker:
runs-on: ubuntu-latest
Expand All @@ -40,7 +39,6 @@ jobs:
run: apt-get update && apt-get install -y curl

- name: Use myself
id: toolchain
uses: ./
with:
toolchain: nightly
Expand All @@ -50,4 +48,4 @@ jobs:
components: clippy

- name: Test clippy exists
run: cargo clippy -h > /dev/null
run: cargo clippy -V
57 changes: 57 additions & 0 deletions .github/workflows/test_targets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI Test - install stable & nightly
on:
- pull_request
jobs:
install_on_runner:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
target:
- wasm32-unknown-unknown
steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Test ${{ matrix.target }} exists
run: |
test $(rustup target list | grep installed | grep -c ${{ matrix.target }}) -eq 1 || (echo "Target ${{ matrix.target }} is not installed" && exit 1)
install_in_docker:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- wasm32-unknown-unknown
# 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
uses: ./
with:
toolchain: nightly
profile: minimal
override: true
targets: ${{ matrix.target }}

- name: Test ${{ matrix.target }} exists
run: |
test $(rustup target list | grep installed | grep -c ${{ matrix.target }}) -eq 1 || (echo "Target ${{ matrix.target }} is not installed" && exit 1)

0 comments on commit 5a6df05

Please sign in to comment.