Skip to content

Commit

Permalink
Check if yaml placeholders work
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 22, 2021
1 parent a1a8000 commit 9535e1d
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,51 @@ jobs:
- name: Run cargo fmt
run: cargo fmt --all -- --check

test_crate: &test_crate
name: Test ({{crate}})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 14

- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Install node dependencies
run: |
npm config set prefix ~/npm
npm i browserslist regenerator-runtime sourcemap-validator progress
npm i -g jest
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/
**/target/
key: ${{ runner.os }}-cargo-test

# Ensure that all components all compilable.
- name: Run cargo check for all targets
run: cargo check --color always --all --all-targets

- name: Run cargo test
run: |
export PATH="$PATH:$HOME/npm/bin"
cargo test --color always --package {{crate}}
test_swc:
<<: *test_crate
crate: swc

test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 9535e1d

Please sign in to comment.