Skip to content

Commit

Permalink
Merge pull request #34 from nils-herrmann/nils-herrmann-patch-12
Browse files Browse the repository at this point in the history
Create ci.yml
  • Loading branch information
nils-herrmann authored Sep 20, 2024
2 parents f0c3d1b + 352bdb2 commit 639d322
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: build
on:
push:
branches:
- master
tags:
- '!*' # Do not execute on tags
paths:
- src/*
- test/*
- '*.json'
- yarn.lock
pull_request:
paths:
- '!*.MD'
jobs:
test:
strategy:
matrix:
platform: [ ubuntu-latest, macOS-latest ]
node: [ '14', '12' ]
name: test/node ${{ matrix.node }}/${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}
- run: npm install -g yarn
- run: yarn install
- run: yarn build
- run: yarn test
coverage:
needs: [ test ]
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: '12'
- run: npm install -g yarn
- run: yarn install
- run: yarn build
- uses: paambaati/codeclimate-action@v5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: yarn run coverage
debug: true

0 comments on commit 639d322

Please sign in to comment.