Skip to content

Commit

Permalink
ci: Alright, let's see what happens now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anadian committed Jan 18, 2021
1 parent ad5ee0e commit 531a4bd
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- 9
- 10
- 11
needs: setup-${{ matrix.os }}-node-${{ matrix.node }}
needs: setup
name: build-${{ matrix.os }}-node-${{ matrix.node }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -64,7 +64,7 @@ jobs:
- 9
- 10
- 11
needs: build-${{ matrix.os }}-node-${{ matrix.node }}
needs: build
name: test-build-${{ matrix.os }}-node-${{ matrix.node }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -83,7 +83,7 @@ jobs:
- 12
- 13
- 14
needs: setup-${{ matrix.os }}-node-${{ matrix.node }}
needs: setup
name: test-${{ matrix.os }}-node-${{ matrix.node }}
runs-on: ${{ matrix.os }}
steps:
Expand Down
162 changes: 162 additions & 0 deletions ci/github-actions.jsonic
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"name": "ci",
"on": [
"push",
"pull_request"
],
"jobs": {
"setup":{
"strategy": {
"matrix": {
"os": [
"ubuntu-16.04",
"ubuntu-latest",
"macos-10.15",
"macos-latest",
"windows-2016",
"windows-latest"
],
"node": [
8,
9,
10,
11,
12,
13,
14
]
}
},
"name": "setup-${{ matrix.os }}-node-${{ matrix.node }}",
"runs-on": "${{ matrix.os }}",
"steps": [
{ "uses": "actions/checkout@v2" },
{
"uses": "actions/setup-node@v2",
"with": {
"node-version": "${{ matrix.node }}"
}
},
{ "run": "npm install" }
]
},
"build": {
"strategy": {
"matrix": {
"os": [
"ubuntu-16.04",
"ubuntu-latest",
"macos-10.15",
"macos-latest",
"windows-2016",
"windows-latest"
],
"node": [
8,
9,
10,
11
]
}
},
//"needs": "setup-${{ matrix.os }}-node-${{ matrix.node }}",
"needs": "setup",
"name": "build-${{ matrix.os }}-node-${{ matrix.node }}",
"runs-on": "${{ matrix.os }}",
"steps": [
{
"run": "npm run build"
}
]
},
"test-build": {
"strategy": {
"matrix": {
"os": [
"ubuntu-16.04",
"ubuntu-latest",
"macos-10.15",
"macos-latest",
"windows-2016",
"windows-latest"
],
"node": [
8,
9,
10,
11
]
}
},
//"needs": "build-${{ matrix.os }}-node-${{ matrix.node }}",
"needs": "build",
"name": "test-build-${{ matrix.os }}-node-${{ matrix.node }}",
"runs-on": "${{ matrix.os }}",
"steps": [
{
"run": "ava -v Output/main.test.js"
}
]
},
"test": {
"strategy": {
"matrix": {
"os": [
"ubuntu-16.04",
"ubuntu-latest",
"macos-10.15",
"macos-latest",
"windows-2016",
"windows-latest"
],
"node": [
12,
13,
14
]
}
},
//"needs": "setup-${{ matrix.os }}-node-${{ matrix.node }}",
"needs": "setup",
"name": "test-${{ matrix.os }}-node-${{ matrix.node }}",
"runs-on": "${{ matrix.os }}",
"steps": [
{ "run": "npm test" }
]
},
"ci-linux": {
"runs-on": "ubuntu-latest",
"steps": [
{ "uses": "actions/checkout@v2" },
{ "uses": "actions/setup-node@v2" },
{ "run": "npm install" },
{ "run": "npx nyc npm test && npx nyc report --reporter=text-lcov > lcov.txt" },
{
"uses": "coverallsapp/github-action@master",
"with": {
"github-token": "${{ secrets.GITHUB_TOKEN }}",
"path-to-lcov": "lcov.txt"
}
}
]
},
"ci-macos": {
"runs-on": "macos-latest",
"steps": [
{ "uses": "actions/checkout@v2" },
{ "uses": "actions/setup-node@v2" },
{ "run": "npm install" },
{ "run": "npm test" }
]
},
"ci-windows": {
"runs-on": "windows-latest",
"steps": [
{ "uses": "actions/checkout@v2" },
{ "uses": "actions/setup-node@v2" },
{ "run": "npm install" },
{ "run": "npm test" }
]
}
}
}

0 comments on commit 531a4bd

Please sign in to comment.