Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #342 from Enselic/start-using-github-actions-inste…
…ad-of-travis-ci Start using GitHub Actions instead of Travis CI
- Loading branch information
Showing
3 changed files
with
50 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build-and-test: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Build | ||
run: | | ||
cargo build | ||
- name: Run tests | ||
run: | | ||
cargo test --features metadata | ||
- name: Run tests with fancy | ||
run: | | ||
# Run these tests in release mode since they're slow as heck otherwise | ||
cargo test --features default-fancy --no-default-features --release | ||
- name: make stuff | ||
run: | | ||
make assets | ||
make syntest | ||
make syntest-fancy | ||
rm -Rf examples | ||
- name: Docs | ||
run: | | ||
# Only run doc build on stable until this is fixed: https://github.com/rust-lang/rust/issues/51661 | ||
cargo doc | ||
- name: Run tests without default features | ||
run: | | ||
# default features are required for examples to build - so remove them from sight. | ||
# Doc-tests may also use default features | ||
rm -Rf examples && cargo test --lib --no-default-features | ||
- name: Run Xi tests | ||
run: | | ||
# Test the build configuration that Xi uses | ||
cargo test --lib --no-default-features --features "assets dump-load-rs" |
This file was deleted.
Oops, something went wrong.
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