1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/.github/workflows/continuous-integration.yml
2021-09-19 14:15:00 -07:00

44 lines
1.4 KiB
YAML

# Based on https://github.com/actions/starter-workflows/blob/master/ci/node.js.yml
name: Build and Test
on: [push, pull_request]
jobs:
ci:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest, windows-latest]
node-version: [10.x, 12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
# Ensure that we can still build in the current version of Node
- run: node ./bin/cake build:except-parser
- run: node ./bin/cake build:parser
# Build twice to ensure that the latest build of the compiler can still build itself
- run: node ./bin/cake build:except-parser
- run: node ./bin/cake build:parser
# Build the browser compiler for the headless browser test
- run: node ./bin/cake build:browser
# Check that the git diff is clean, to ensure that the updated build output was committed
- run: git diff --exit-code
# Build test.html, so that test:browser uses the latest tests
- run: node ./bin/cake doc:test
# Test
- run: node ./bin/cake test
- run: node ./bin/cake test:browser
- run: node ./bin/cake test:browser:node
- run: node ./bin/cake test:integrations