Skip to content

Commit

Permalink
delete this commit; just to run CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJonny committed Apr 16, 2024
1 parent b33b3f6 commit 297148c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/actions/test_more/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Test repeated'
description: 'Test nix repeated'
inputs:
# This is required
TARGET:
required: true

SUDO:
description: 'Set it to an empty string to run the tests as the current user, leave it with the default value to test with "sudo"'
required: false
default: sudo --preserve-env=HOME

TOOL:
description: 'Tool used to involve the test command, can be cargo or cross'
required: false
default: cargo

RUSTFLAGS:
required: false
default: -D warnings -A unknown-lints

runs:
using: "composite"
steps:
- name: set up Rust env
shell: bash
run: |
echo "RUSTFLAGS=${{ inputs.RUSTFLAGS }}" >> $GITHUB_ENV
- name: test more
shell: bash
run: for i in $(seq 50); do ${{ inputs.SUDO }} $(which ${{ inputs.TOOL }}) test --target ${{ inputs.TARGET }} --all-features ; done
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
TARGET: '${{ env.TARGET }}'

- name: test
uses: ./.github/actions/test
uses: ./.github/actions/test_more
with:
TARGET: '${{ env.TARGET }}'

Expand All @@ -63,7 +63,7 @@ jobs:
TARGET: "${{ env.TARGET }}"

- name: test
uses: ./.github/actions/test
uses: ./.github/actions/test_more
with:
TARGET: "${{ env.TARGET }}"

Expand Down

0 comments on commit 297148c

Please sign in to comment.