Skip to content

Commit

Permalink
Add github actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemelia committed Sep 16, 2023
1 parent 6caef24 commit 0953619
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 96 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- commit-message:
include: "scope"
prefix: "chore"
directory: "/"
open-pull-requests-limit: 10
package-ecosystem: "npm"
schedule:
interval: "weekly"
time: "10:00"
versioning-strategy: "increase"
76 changes: 76 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: CI

on:
push:
branches:
- main
- master
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
test:
name: "Tests"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Run Tests
run: yarn test:ember

floating:
name: "Floating Dependencies"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
- name: Install Dependencies
run: yarn install --no-lockfile
- name: Run Tests
run: yarn test:ember

try-scenarios:
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
needs: "test"
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
try-scenario:
- ember-lts-3.24
- ember-lts-3.28
- ember-classic
- embroider-safe
- embroider-optimized

steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

45 changes: 13 additions & 32 deletions config/ember-try.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const getChannelURL = require('ember-source-channel-url');
/* eslint-disable-next-line node/no-missing-require */
const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');

module.exports = async function () {
Expand All @@ -12,51 +12,28 @@ module.exports = async function () {
npm: {
devDependencies: {
'ember-source': '~3.24.3',
'ember-template-imports': null,
},
},
allowedToFail: true, // to fix this, we need some build-time logic to avoid trying to render gts component
},
{
name: 'ember-lts-3.28',
npm: {
devDependencies: {
'ember-source': '~3.28.0',
'@ember/test-helpers': '2.8.1',
'ember-qunit': '5.1.5',
'@types/ember__test-helpers': '^2.8.1',
'@types/ember-qunit': '^5.0.2',
},
},
},
{
name: 'ember-release',
name: 'ember-lts-4.4',
npm: {
devDependencies: {
'ember-source': await getChannelURL('release'),
},
},
},
{
name: 'ember-beta',
npm: {
devDependencies: {
'ember-source': await getChannelURL('beta'),
},
},
},
{
name: 'ember-canary',
npm: {
devDependencies: {
'ember-source': await getChannelURL('canary'),
},
},
},
{
name: 'ember-default-with-jquery',
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({
'jquery-integration': true,
}),
},
npm: {
devDependencies: {
'@ember/jquery': '^1.1.0',
'ember-source': '~4.4.0',
},
},
},
Expand All @@ -72,6 +49,10 @@ module.exports = async function () {
npm: {
devDependencies: {
'ember-source': '~3.28.0',
'@ember/test-helpers': '2.8.1',
'ember-qunit': '5.1.5',
'@types/ember__test-helpers': '^2.8.1',
'@types/ember-qunit': '^5.0.2',
},
ember: {
edition: 'classic',
Expand Down

0 comments on commit 0953619

Please sign in to comment.