diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 00000000..0369b718 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,24 @@ +on: [push, pull_request] + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Checkout repository and submodules + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Install nix 2.3.6 + uses: cachix/install-nix-action@v13 + with: + install_url: https://releases.nixos.org/nix/nix-2.3.6/install + nix_path: nixpkgs=channel:nixos-unstable + + - name: Use maker cachix + uses: cachix/cachix-action@v10 + with: + name: maker + + - name: Run tests + run: nix-shell --pure --run 'dapp test' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 868abd19..00000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -os: - - linux -language: nix -nix: 2.3.6 -before_install: - - nix-env -iA nixpkgs.cachix - - echo "trusted-users = root travis" | sudo tee -a /etc/nix/nix.conf && sudo pkill nix-daemon - - cachix use maker -script: - - nix-shell --pure --run 'dapp test' diff --git a/README.md b/README.md index 93041cb0..342886e4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Multi Collateral Dai -[![Build Status](https://travis-ci.com/makerdao/dss.svg?branch=master)](https://travis-ci.com/makerdao/dss) -[![codecov](https://codecov.io/gh/makerdao/dss/branch/master/graph/badge.svg)](https://codecov.io/gh/makerdao/dss) +![Build Status](https://github.com/makerdao/dss/actions/workflows/.github/workflows/tests.yaml/badge.svg?branch=master) This repository contains the core smart contract code for Multi Collateral Dai. This is a high level description of the system, assuming