Skip to content

Commit

Permalink
Merge pull request #311 from tildeio/update-ci
Browse files Browse the repository at this point in the history
Upgrade CI
  • Loading branch information
stefanpenner authored Nov 6, 2020
2 parents 9cb6aa7 + dd12c9c commit 05c7d90
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
38 changes: 26 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,33 @@ name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches:
- master
- 'v*' # older version branches
tags:
- '*'
pull_request: {}
schedule:
- cron: '0 6 * * 0' # weekly, on sundays

jobs:
build:
runs-on: ubuntu-latest
test:
name: Tests
runs-on: ${{ matrix.os }}

strategy:
matrix:
node: ['10', '12', '14', '15']
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn test
- uses: actions/checkout@v1
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node }}
- name: install dependencies
run: yarn
- name: lint
run: yarn lint
- name: test
run: yarn test
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100
"printWidth": 100,
"endOfLine": "auto"
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,9 @@
"release": true,
"tokenRef": "GITHUB_AUTH"
}
},
"volta": {
"node": "14.15.0",
"yarn": "1.22.10"
}
}

0 comments on commit 05c7d90

Please sign in to comment.