Skip to content

Commit

Permalink
ci: update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Aug 13, 2020
1 parent a33712d commit 2744e72
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/repolinter-test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json",
"version": 2,
"axioms": {
"linguist":"language",
"licensee":"license",
"packagers":"packager"
},
"rules": {}
}
37 changes: 34 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ name: Build/Test
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
test-unit:
strategy:
matrix:
os:
- windows-latest
- ubuntu-latest
- ubuntu-16.04
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -24,4 +31,28 @@ jobs:
run: npm run test
- name: Coverage
uses: codecov/codecov-action@v1

test-system:
strategy:
matrix:
os:
- windows-latest
- ubuntu-latest
- ubuntu-16.04
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: .github/actions/repolinter-action
- name: Run Action
id: repolinter
uses: ./.github/actions/repolinter-action
with:
config-file: ./.github/workflows/repolinter-test.json
- name: Verify Outputs
env:
DID_ERROR: ${{ steps.repolinter.outputs.errored }}
DID_PASS: ${{ steps.repolinter.outputs.passed }}
shell: bash
run: '[ "$DID_ERROR" = "false" ] && [ "$DID_PASS" = "true" ]'

0 comments on commit 2744e72

Please sign in to comment.