Skip to content

CI

CI #567

Workflow file for this run

name: CI
on:
push:
branches:
- master
- 'v*' # older version branches
tags:
- '*'
pull_request: {}
schedule:
- cron: '0 6 * * 0' # weekly, on sundays
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: install dependencies
run: yarn install --frozen-lockfile --ignore-engines
- name: lint
run: yarn lint:js
node-tests:
name: "Node: Node ${{ matrix.node }} - ${{ matrix.os }}"
runs-on: "${{matrix.os}}-latest"
strategy:
matrix:
os: ['ubuntu', 'windows', 'macOS']
node: [16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: install dependencies
run: yarn install --frozen-lockfile --ignore-engines
- name: test
run: yarn test:node
acceptance-tests:
name: "Acceptance: Node ${{ matrix.node }} - ${{ matrix.os }}"
runs-on: "${{matrix.os}}-latest"
strategy:
matrix:
os: ['ubuntu', 'windows']
node: [16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: install dependencies
run: yarn install --frozen-lockfile --ignore-engines
- name: test
run: yarn test:ember
floating-test:
name: Floating dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: install dependencies
run: yarn install --no-lockfile --ignore-engines
- name: test
run: yarn test
publish:
name: Publish to npm
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: install dependencies
run: yarn install --frozen-lockfile --ignore-engines
- name: auto-dist-tag
run: npx auto-dist-tag --write
- name: publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}