Skip to content

Commit

Permalink
Backport TravisCI to GitHub Actions migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Dec 13, 2021
1 parent 7bec45d commit 55d104b
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 61 deletions.
93 changes: 93 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: CI Build

on:
push:
branches:
- main
- master
- v*
tags:
- v*
pull_request:

jobs:
test:
name: Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 6.x

- run: yarn install --frozen-lockfile
- run: yarn lint:hbs
- run: yarn lint:js
- run: yarn test

floating-dependencies:
name: "Floating Dependencies"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 6.x

- run: yarn install --no-lockfile
- run: yarn test

try-scenarios:
name: "Try: ${{ matrix.ember-try-scenario }}"

runs-on: ubuntu-latest

needs: test

strategy:
matrix:
ember-try-scenario:
- ember-lts-2.18
- ember-lts-3.4
- ember-release
- ember-beta
- ember-canary
- ember-default-with-jquery

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 6.x

- name: install dependencies
run: yarn install --frozen-lockfile
- name: test
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup

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@v2

- name: Install node
uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: 'https://registry.npmjs.org'

- name: install dependencies
run: yarn install --frozen-lockfile

- name: auto-dist-tag
run: npx auto-dist-tag@1 --write

- name: publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
61 changes: 0 additions & 61 deletions .travis.yml

This file was deleted.

0 comments on commit 55d104b

Please sign in to comment.