Created
February 4, 2020 20:51
-
-
Save MarceloPrado/fc35ea7cb11e62bb81042f71aa85e326 to your computer and use it in GitHub Desktop.
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
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 [email protected] | |
- 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