Skip to content

Commit

Permalink
Merge pull request #53 from adopted-ember-addons/melsumner/gh-actions
Browse files Browse the repository at this point in the history
Add a little CI
  • Loading branch information
MelSumner committed Feb 6, 2024
2 parents 2c7a0d2 + a26da2b commit 43c725a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Node CI

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

jobs:
test:
name: "Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
- name: Lint
run: pnpm run lint
- name: Run Tests
run: pnpm run test:ember
working-directory: test-app

try-scenarios:
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
needs: 'test'

strategy:
fail-fast: false
matrix:
try-scenario:
- ember-lts-4.8
- ember-lts-4.12
- ember-release
- ember-beta
- ember-canary
- embroider-safe
- embroider-optimized

steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
- name: Run Tests
working-directory: test-app
run: pnpm ember try:one ${{ matrix.try-scenario }}
3 changes: 2 additions & 1 deletion test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"lint:types": "tsc --noEmit",
"start": "ember serve",
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
"test:ember": "ember test"
"test:ember": "ember test",
"test:ember-compat": "ember try:each"
},
"devDependencies": {
"@babel/core": "^7.23.2",
Expand Down

0 comments on commit 43c725a

Please sign in to comment.