Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converted main.workflow to Actions V2 yml files #1018

Merged
merged 5 commits into from Sep 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
41 changes: 0 additions & 41 deletions .github/main.workflow

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/push.yml
@@ -0,0 +1,38 @@
on: push
name: build, test and (only if this a release) publish
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

# - name: Dump GitHub context
# env:
# GITHUB_CONTEXT: ${{ toJson(github) }}
# run: echo "$GITHUB_CONTEXT"

- name: install
uses: actions/npm@1.0.0
with:
entrypoint: yarn
args: install

- name: build
uses: actions/npm@1.0.0
with:
entrypoint: yarn
args: build

- name: test
uses: ./.github/node-chrome
with:
entrypoint: yarn
args: execution-tests

- name: publish if release is created
if: github.event_name == 'release' && github.event.action == 'created'
uses: actions/npm@1.0.0
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
with:
args: publish