From f9385d3006a7eccb0bc91559d2afb016b7f71bec Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Wed, 25 Nov 2020 23:48:31 +0100 Subject: [PATCH] chore: add GitHub action This aims to replace our Travis CI builds. --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..a5da13fec --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: ci +on: [ push, pull_request ] +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '10.x' + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + ${{ runner.OS }}- + - name: Install dependencies + run: npm ci + - name: Build + run: COVERAGE=1 npm run all + - name: Upload coverage + run: npx codecov \ No newline at end of file