Skip to content

Commit

Permalink
Merge pull request #342 from Enselic/start-using-github-actions-inste…
Browse files Browse the repository at this point in the history
…ad-of-travis-ci

Start using GitHub Actions instead of Travis CI
  • Loading branch information
trishume committed Jul 5, 2021
2 parents d868092 + 1f8b1de commit 2ded9ac
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 53 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/CI.yml
@@ -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"
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Readme.md
Expand Up @@ -3,7 +3,7 @@
[![Crates.io](https://img.shields.io/crates/v/syntect.svg?maxAge=2591000)](https://crates.io/crates/syntect)
[![Documentation](https://docs.rs/syntect/badge.svg)](https://docs.rs/syntect)
[![Crates.io](https://img.shields.io/crates/l/syntect.svg?maxAge=2591000)]()
[![Build Status](https://travis-ci.org/trishume/syntect.svg?branch=master)](https://travis-ci.org/trishume/syntect)
[![Build Status](https://github.com/trishume/syntect/actions/workflows/CI.yml/badge.svg)](https://github.com/trishume/syntect/actions)
[![codecov](https://codecov.io/gh/trishume/syntect/branch/master/graph/badge.svg)](https://codecov.io/gh/trishume/syntect)

`syntect` is a syntax highlighting library for Rust that uses [Sublime Text syntax definitions](http://www.sublimetext.com/docs/3/syntax.html#include-syntax).
Expand Down

0 comments on commit 2ded9ac

Please sign in to comment.