From 6c1c780d3c8ab6e27ea63d272e0d1176b05b9871 Mon Sep 17 00:00:00 2001 From: George Niculae <484415+dizzy@users.noreply.github.com> Date: Fri, 17 Sep 2021 20:58:24 +0300 Subject: [PATCH] Move to GH Actions (#235) * Move to GH Actions * Pin Nix version to 2.3.6 * Run CI actions on all branches and PRs Co-authored-by: grandizzy --- .github/workflows/tests.yaml | 24 ++++++++++++++++++++++++ .travis.yml | 10 ---------- README.md | 3 +-- 3 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/tests.yaml delete mode 100644 .travis.yml 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