Skip to content

Instantly share code, notes, and snippets.

@MarceloPrado
Created February 4, 2020 20:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MarceloPrado/fc35ea7cb11e62bb81042f71aa85e326 to your computer and use it in GitHub Desktop.
Save MarceloPrado/fc35ea7cb11e62bb81042f71aa85e326 to your computer and use it in GitHub Desktop.
name: Deploy
on:
push:
branches:
- master
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Install Dependencies
run: yarn
- name: Lint
run: yarn lint
- name: Test (unit tests)
run: yarn test
- name: Test (backend)
run: |
curl https://install.meteor.com/ | sh
yarn test-backend
deploy-meteor:
name: Deploys meteor
needs: test
runs-on: ubuntu-latest
steps:
- uses: rlespinasse/github-slug-action@master
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Install Meteor.JS
run: |
curl https://install.meteor.com/ | sh
meteor npm install
npm install -g waves-cli@1.7.5
- name: Waves Deploy
run: scripts/waves/deploy.sh
env:
WORKING_DIR: ./
WAVES_APP: my-waves-app
APP_ENV: production
WAVES_TOKEN: ${{ secrets.PLATFORM_WAVES_TOKEN }}
GITHUB_SHA: ${{ github.sha }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment