mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
only run windows test on push for devel/v2 and on all pull requests
This commit is contained in:
54
.github/workflows/meteor-selftest-windows.yml
vendored
Normal file
54
.github/workflows/meteor-selftest-windows.yml
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
name: Meteor Selftest Windows
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
push:
|
||||
branches:
|
||||
- devel
|
||||
- 2.x.x
|
||||
|
||||
env:
|
||||
METEOR_PRETTY_OUTPUT: 0
|
||||
SELF_TEST_TOOL_NODE_FLAGS: ' '
|
||||
TOOL_NODE_FLAGS: --expose-gc
|
||||
TIMEOUT_SCALE_FACTOR: 20
|
||||
METEOR_HEADLESS: true
|
||||
SELF_TEST_EXCLUDE: '^NULL-LEAVE-THIS-HERE-NULL$'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: windows-2019-meteor
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 20.x
|
||||
|
||||
- name: Install dependencies
|
||||
shell: pwsh
|
||||
run: |
|
||||
$env:PATH = "C:\Program Files\7-Zip;$env:PATH"
|
||||
.\scripts\windows\ci\install.ps1
|
||||
|
||||
- name: Run tests
|
||||
shell: pwsh
|
||||
run: |
|
||||
$env:PATH = "C:\Program Files\7-Zip;$env:PATH"
|
||||
.\scripts\windows\ci\test.ps1
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
.\dev_bundle
|
||||
.\.babel-cache
|
||||
.\.meteor
|
||||
key: ${{ runner.os }}-meteor-${{ hashFiles('**/package-lock.json') }}
|
||||
Reference in New Issue
Block a user