Skip to content

Commit

Permalink
Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bapairaew committed Sep 1, 2021
1 parent bb1a879 commit 5b24b35
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: E2E
on: [deployment_status]
jobs:
app:
if: github.event.deployment_status.state == 'success'
if:
github.event.deployment_status.state == 'success' &&
github.event.deployment.environment == 'Production – open-fpl-app'
runs-on: ubuntu-latest
steps:
- name: Checkout latest commit
Expand All @@ -18,3 +20,49 @@ jobs:
cache-dependency-path: yarn.lock
- name: Run test
run: yarn e2e:app
data:
if:
github.event.deployment_status.state == 'success' &&
github.event.deployment.environment == 'Production – open-fpl-data'
runs-on: ubuntu-latest
steps:
- name: Checkout latest commit
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: "14"
cache: "yarn"
cache-dependency-path: yarn.lock
- name: Run test
run: yarn e2e:data
www:
if:
github.event.deployment_status.state == 'success' &&
github.event.deployment.environment == 'Production – open-fpl-www'
runs-on: ubuntu-latest
steps:
- name: Checkout latest commit
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: "14"
cache: "yarn"
cache-dependency-path: yarn.lock
- name: Run test
run: yarn e2e:www
# remove this later
log:
runs-on: ubuntu-latest
steps:
- name: Print GitHub context
env:
GITHUB: ${{ toJson(github) }}
run: echo "$GITHUB"

1 comment on commit 5b24b35

@vercel
Copy link

@vercel vercel bot commented on 5b24b35 Sep 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

open-fpl-data – ./packages/data

open-fpl-data-git-main-bapairaew.vercel.app
data.openfpl.com
open-fpl-data.vercel.app
open-fpl-data-bapairaew.vercel.app

Please sign in to comment.