-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
414 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,11 @@ include = [ | |
"/src/schemastore/src/schemas/json/github-action.json" | ||
] | ||
version = "0.0.0-git" | ||
authors = ["Matt Palmer <[email protected]>"] | ||
authors = [ | ||
"Matt Palmer <[email protected]>", | ||
"Ben Heidemann <[email protected]>", | ||
"Austin Ward <[email protected]>" | ||
] | ||
edition = "2021" | ||
# If this is changed, .github/workflows/qa.yml build matrix needs updating as well | ||
rust-version = "1.60.0" | ||
|
@@ -20,7 +24,8 @@ rust-version = "1.60.0" | |
crate-type = ["cdylib", "rlib"] | ||
|
||
[features] | ||
js = ["console_error_panic_hook", "wee_alloc", "valico/js"] | ||
js = ["console_error_panic_hook", "valico/js"] | ||
save-snapshots = [] | ||
|
||
[dependencies] | ||
clap = { version = "4.0", features = ["derive"] } | ||
|
@@ -39,14 +44,12 @@ wasm-bindgen = "0.2.63" | |
# code size when deploying. | ||
console_error_panic_hook = { version = "0.1.6", optional = true } | ||
|
||
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size | ||
# compared to the default allocator's ~10K. It is slower than the default | ||
# allocator, however. | ||
wee_alloc = { version = "0.4.5", optional = true } | ||
serde-wasm-bindgen = "0.4.5" | ||
|
||
[dev-dependencies] | ||
wasm-bindgen-test = "0.3.13" | ||
rstest = "0.16.0" | ||
assert_cmd = "2.0.8" | ||
|
||
[profile.release] | ||
# Tell `rustc` to optimize for small code size. | ||
|
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
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Test | |
on: | ||
push: | ||
paths: | ||
- 003_successful_globs/* | ||
- ./tests/003_successful_globs/* | ||
|
||
defaults: | ||
run: | ||
|
File renamed without changes.
File renamed without changes.
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 @@ | ||
Fatal error validating ./tests/004_failing_globs/glob.yml |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
Fatal error validating ./tests/007_funky_syntax/rust-check.yml |
File renamed without changes.
File renamed without changes.
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 @@ | ||
Fatal error validating ./tests/008_job_dependencies/test.yml |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
Fatal error validating ./tests/009_multi_file/xinvalid.yml |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,78 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
default: true | ||
|
||
- name: Check Formatting | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: -- --check | ||
|
||
- name: Check with Clippy | ||
uses: actions-rs/clippy-check@v1 | ||
with: | ||
args: -- -Dwarnings | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Shellcheck | ||
uses: ludeeus/action-shellcheck@master | ||
|
||
- name: Install shfmt | ||
uses: mfinelli/setup-shfmt@master | ||
|
||
- name: Run shfmt | ||
run: shfmt -d bin/* | ||
|
||
|
||
build: | ||
strategy: | ||
matrix: | ||
rust-toolchain: | ||
- stable | ||
- nightly | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
override: true | ||
default: true | ||
|
||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --all-features |
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 @@ | ||
1 |
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,18 @@ | ||
Validation failed: ValidationState { | ||
action_type: Some( | ||
Workflow, | ||
), | ||
file_path: Some( | ||
"./tests/011_remote_checks_failure/test.yml", | ||
), | ||
errors: [ | ||
Unknown { | ||
code: "action_not_found", | ||
detail: Some( | ||
"Could not find action: actions/checkouts@v2", | ||
), | ||
path: "jobs/build/steps/uses/actions/checkouts@v2", | ||
title: "Action Not Found", | ||
}, | ||
], | ||
} |
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 @@ | ||
Fatal error validating ./tests/011_remote_checks_failure/test.yml |
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,78 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
default: true | ||
|
||
- name: Check Formatting | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: -- --check | ||
|
||
- name: Check with Clippy | ||
uses: actions-rs/clippy-check@v1 | ||
with: | ||
args: -- -Dwarnings | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Shellcheck | ||
uses: ludeeus/action-shellcheck@master | ||
|
||
- name: Install shfmt | ||
uses: mfinelli/setup-shfmt@master | ||
|
||
- name: Run shfmt | ||
run: shfmt -d bin/* | ||
|
||
|
||
build: | ||
strategy: | ||
matrix: | ||
rust-toolchain: | ||
- stable | ||
- nightly | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkouts@v2 | ||
|
||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
override: true | ||
default: true | ||
|
||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --all-features |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.