Added GitHub Action to run tests #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test-addon: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- name: Install dependencies | |
run: | | |
set -x | |
npm install -g ember-cli@3.1.4 | |
yarn install | |
- name: Setup test environment | |
uses: ./.github/actions/setup-test-environment | |
- name: Run linters | |
id: linting | |
run: yarn run lint | |
- name: Test addon | |
if: ${{ success() || steps.linting.conclusion == 'failure' }} | |
run: | | |
set -x | |
ember try:one ember-default --skip-cleanup |