Skip to content

Commit

Permalink
chore: Use Github actions for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
drager committed Jun 17, 2023
1 parent 768cedf commit 6a5e899
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 57 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,58 @@
name: Tests

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
name: Test

runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [linux-stable, macos-stable, windows-stable]
include:
- build: linux-stable
os: ubuntu-latest
rust: stable
- build: macos-stable
os: macos-latest
rust: stable
- build: windows-stable
os: windows-latest
rust: stable

steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- name: Cache dependencies
uses: actions/cache@v3
env:
cache-name: cache-dependencies
with:
path: |
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/bin
~/.cargo/registry/index
~/.cargo/registry/cache
target
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}

- name: Run Tests
run: cargo test --all --locked
env:
RUST_BACKTRACE: 1

- name: Clippy
run: cargo clippy

- name: Cargo fmt
run: cargo fmt --all -- --check
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@

Install a binary from a path to a global cache.

[![Build Status](https://dev.azure.com/rustwasm/binary-install/_apis/build/status/rustwasm.binary-install?branchName=master)](https://dev.azure.com/rustwasm/binary-install/_build/latest?definitionId=1&branchName=master)
[![Build Status](https://github.com/rustwasm/binary-install/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/rustwasm/binary-install/actions/workflows/test.yml)
[![crates.io](https://meritbadge.herokuapp.com/binary-install)](https://crates.io/crates/binary-install)
[![API Documentation on docs.rs](https://docs.rs/binary-install/badge.svg)](https://docs.rs/binary-install)

34 changes: 0 additions & 34 deletions azure-pipelines.yml

This file was deleted.

22 changes: 0 additions & 22 deletions ci/azure-install-rust.yml

This file was deleted.

0 comments on commit 6a5e899

Please sign in to comment.