Skip to content

Commit

Permalink
ci(actions): testing github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdiliberto committed Dec 13, 2019
1 parent ab6a14c commit b2674b8
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: CI

on:
pull_request:
push:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- master
- 'v*'
# always run CI for tags
tags:
- '*'
# early issue detection: run CI weekly on Sundays
schedule:
- cron: '0 6 * * 0'

env:
CI: true

jobs:
test-locked-deps:
name: Locked Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 8
- name: Install Dependencies
run: yarn install --non-interactive
- name: Lint HBS
run: yarn lint:hbs
- name: Lint JS
run: yarn lint:js
- name: Browser Tests
run: yarn test

test-floating-deps:
name: Floating Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 8
- name: Install Dependencies
run: yarn install --no-lockfile --non-interactive
- name: Browser Tests
run: yarn test

test-ember-try:
name: Ember Try
runs-on: ubuntu-latest
needs: [test-locked-deps, test-floating-deps]
strategy:
matrix:
scenario:
- ember-3.13
- ember-release
- ember-beta
- ember-canary
- ember-default-with-jquery
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 8
- name: Install Dependencies
run: yarn install --no-lockfile --non-interactive
- name: Scenario
run: yarn ember try:one ${{ matrix.scenario }}

# deploy:
# name: Production Deploy
# runs-on: ubuntu-latest
# needs: [test-ember-try]
# if: (branch = master OR tag IS present) AND type = push
# steps:
# - name: Checkout Code
# uses: actions/checkout@v1
# - name: Install Node
# uses: actions/setup-node@v1
# with:
# node-version: 12
# - name: Install Dependencies
# run: yarn install --frozen-lockfile
# - name: Sass App
# run: yarn workspace sass-app test
# - name: Dummy Addon
# run: yarn workspace dummy-addon test
# - name: Plugin Addon
# run: yarn workspace plugin-addon test

# publish:
# name: NPM Publish
# runs-on: ubuntu-latest
# needs: [deploy]
# steps:
# - name: Checkout Code
# uses: primer/publish@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
# args: '--dry-run -- --unsafe-perm'

0 comments on commit b2674b8

Please sign in to comment.