forked from actions-rs/clippy-check
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(ci): bind to specific ubuntu version * fix: update `rs-actions-core` to 4.0.2, run `npm update` * feat!: remove `use-cross` arg, replace with `tool`, add `cargo-hack` support * chore: move to v4.0.0 * chore: improve error logging * chore: update to `rs-actions-core` 5.0.0, fix issues, add tests * chore: fix rebase * chore: fix summary
- Loading branch information
1 parent
709aeb1
commit 6e8219f
Showing
13 changed files
with
521 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { Input } from '../src/input'; | ||
import { run } from '../src/run'; | ||
|
||
const SECONDS = 1000; | ||
|
||
describe('run', () => { | ||
it.each([ | ||
{ | ||
name: 'rust-tests-clippy-warnings', | ||
input: { | ||
toolchain: 'stable', | ||
args: ['--all-features'], | ||
workingDirectory: 'rust_tests/clippy_warnings', | ||
}, | ||
}, | ||
{ | ||
name: 'rust-tests-cross', | ||
input: { | ||
args: ['--target', 'aarch64-unknown-linux-gnu', '--all-features'], | ||
workingDirectory: 'rust_tests/clippy_warnings', | ||
tool: 'cross', | ||
cacheKey: 'rs-clippy-check-tests', | ||
}, | ||
}, | ||
{ | ||
name: 'rust-tests-cargo-hack', | ||
input: { | ||
args: ['--feature-powerset'], | ||
workingDirectory: 'rust_tests/clippy_warnings', | ||
tool: 'cargo-hack', | ||
cacheKey: 'rs-clippy-check-tests', | ||
}, | ||
}, | ||
])( | ||
'$name', | ||
async ({ input }: { input: Input }) => { | ||
const inputWithoutCache: Input = { | ||
...input, | ||
...(!process.env.CI && { cacheKey: 'no-cache' }), | ||
}; | ||
|
||
await expect(run(inputWithoutCache)).resolves.not.toThrow(); | ||
}, | ||
240 * SECONDS, | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.