Skip to content

Commit

Permalink
Merge pull request #21 from harryadel/CI-update
Browse files Browse the repository at this point in the history
Add Github Workflow
  • Loading branch information
StorytellerCZ authored Jul 21, 2023
2 parents 038dbb3 + 1f6db47 commit d88a3e1
Show file tree
Hide file tree
Showing 7 changed files with 2,360 additions and 1,908 deletions.
82 changes: 0 additions & 82 deletions .circleci/config.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflow/nodejs.yml

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Build and Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
id: files-cache
with:
path: |
node_modules
dist/
~/.meteor
/tmp/tests/.__tmp_int
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install/Retrieve Meteor
if: steps.files-cache.outputs.cache-hit != 'true'
run: curl https://install.meteor.com/?release=2.6 | /bin/sh
- name: Install NPM Dependencies
if: steps.files-cache.outputs.cache-hit != 'true'
run: meteor npm ci

test:
needs: build
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Cache dependencies
uses: actions/cache@v3
id: files-cache
with:
path: |
node_modules
dist/
~/.meteor
/tmp/tests/.__tmp_int
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Unit Tests
run: ~/.meteor/meteor npm run test

test-integration:
needs: build
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Cache dependencies
uses: actions/cache@v3
id: files-cache
with:
path: |
node_modules
dist/
~/.meteor
/tmp/tests/.__tmp_int
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- run: ~/.meteor/meteor npm run prepare-integration-tests
- run: ~/.meteor/meteor npm run test-integration
61 changes: 0 additions & 61 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit d88a3e1

Please sign in to comment.