Skip to content

Commit

Permalink
Merge pull request #36 from mockersf/ci-to-github-actions
Browse files Browse the repository at this point in the history
Switch CI from Travis to GitHub Actions
  • Loading branch information
Ihor authored Oct 16, 2023
2 parents 280fd98 + 19f2673 commit b9bbdbb
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 11 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
pull_request:

jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@stable

- name: Check format
run: |
cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable

- name: Run clippy
run: |
cargo clippy -- -D warnings
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable

- name: Run tests
run: |
cargo test
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/21re/rust-geo-booleanop.svg?branch=master)](https://travis-ci.org/21re/rust-geo-booleanop)
[![Build Status](https://github.com/21re/rust-geo-booleanop/actions/workflows/ci.yml/badge.svg)](https://github.com/21re/rust-geo-booleanop/actions/workflows/ci.yml)
[![crates.io](https://img.shields.io/crates/v/geo-booleanop.svg)](https://crates.io/crates/geo-booleanop)


Expand Down
2 changes: 1 addition & 1 deletion tests/src/bin/run_single_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn main() {

let filename_in = matches.get_one::<String>("file").unwrap();
let filename_out = filename_in.clone() + ".generated";
fs::copy(&filename_in, &filename_out).expect("Failed to copy file.");
fs::copy(filename_in, &filename_out).expect("Failed to copy file.");

run_generic_test_case_with_extra_options(&filename_out, swap_ab);

Expand Down

0 comments on commit b9bbdbb

Please sign in to comment.