Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardoventurini committed Oct 16, 2024
1 parent c186cc6 commit 68cb2a6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test Meteor Perf Package

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest

env:
METEOR_VERSION: 3.0.4

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20

- name: Cache Meteor Installation
id: meteor-cache
uses: actions/cache@v3
with:
path: ~/.meteor
key: ${{ runner.os }}-meteor-${{ env.METEOR_VERSION }}
restore-keys: |
${{ runner.os }}-meteor-
- name: Install Meteor (if not cached)
if: steps.meteor-cache.outputs.cache-hit != 'true'
run: |
npx meteor@${{ env.METEOR_VERSION }}
- name: Run Tests
run: |
TEST_CLIENT=0 meteor test-packages ./ --driver-package meteortesting:mocha --no-release-check --once

0 comments on commit 68cb2a6

Please sign in to comment.