-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚙️ config(ci): Create first test workflow.
- Loading branch information
1 parent
4fadff0
commit 7aa9b6d
Showing
8 changed files
with
110 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: ci:test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
test: | ||
name: Continuous integration (test) | ||
|
||
strategy: | ||
matrix: | ||
platform: | ||
- ubuntu-latest | ||
meteor-version: | ||
- local | ||
test: | ||
- test/example-projects/meteor-2.13.3 | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
timeout-minutes: 3 | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install 💾 | ||
uses: ./ | ||
with: | ||
working-directory: ${{ matrix.test }} | ||
executable_version: ${{ matrix.meteor-version }} | ||
|
||
- name: Test 🧪 | ||
working-directory: ${{ matrix.test }} | ||
run: | | ||
meteor npm start | grep '^done$' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
local |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
METEOR@2.13.3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import assert from 'assert'; | ||
import {addMilliseconds} from 'date-fns' | ||
|
||
const now = () => new Date(); | ||
const timeout = 500; | ||
const expected = addMilliseconds(now(), timeout); | ||
|
||
setTimeout(() => { | ||
assert(now() >= expected); | ||
console.debug('done'); | ||
}, timeout); | ||
|
||
console.debug('init'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "meteor-2.13.3", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"start": "meteor node index.mjs" | ||
}, | ||
"dependencies": { | ||
"date-fns": "^3.6.0" | ||
} | ||
} |