Merge pull request #101 from Fee0/optional-puncts #142
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
name: Rust | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Node.js for use with actions | |
uses: actions/[email protected] | |
- name: install js test libs from npm | |
run: npm install | |
- name: Build | |
run: cargo build | |
- name: get moz_central files | |
run: curl https://hg.mozilla.org/mozilla-central/archive/tip.zip/js/src/jit-test/tests/ --output moz_central.zip | |
- name: unzip moz_central | |
run: unzip -qq moz_central -d moz_central | |
- name: Run tests | |
run: cargo test --features moz_central | |
if: success() | |
- name: Run Major Libs example | |
run: cargo run --example major_libs | |
if: success() | |
- name: Check syntax | |
run: cargo fmt --all -- --check | |
if: success() | |
- name: Get tarpaulin install script | |
run: cargo install cargo-tarpaulin | |
if: success() | |
- name: Run tarpaulin and upload to CodeCov.io | |
run: cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
RUST_LOG: trace | |
if: success() | |
- name: Cache node_modules | |
uses: actions/[email protected] | |
with: | |
path: ./node_modules | |
key: ${{ runner.os }}.node_modules | |
- name: before cargo cache | |
run: rm -rf ~/.cargo/registry | |
- name: Cache cargo directory | |
uses: actions/[email protected] | |
with: | |
key: ${{ runner.os }}.cargo | |
path: ~/.cargo |