mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
Once #615 is merged, the build script should work on macOS just as well as it does on Ubuntu and with this GitHub Actions matrix we can keep ensuring that it continues to work as it should.
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: Check
|
|
on: [push, pull_request]
|
|
jobs:
|
|
check:
|
|
name: Check
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
- name: Build
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
- name: Test
|
|
run: |
|
|
npm run lint
|
|
TZ=Etc/GMT npm run test
|
|
TZ=Asia/Shanghai npm run test
|
|
TZ=America/New_York npm run test
|
|
- name: Coverage
|
|
uses: coverallsapp/[email protected]
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Performance
|
|
run: |
|
|
npm run perf:diff
|
|
- name: Archive npm failure logs
|
|
uses: actions/upload-artifact@v2
|
|
if: failure()
|
|
with:
|
|
name: npm-logs
|
|
path: ~/.npm/_logs
|