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

feat: update workflows #152

Merged
merged 6 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cdelivery-s3-caller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
graasp-deploy-s3-workflow:
name: Graasp Player
uses: graasp/graasp-deploy/.github/workflows/cdelivery-s3.yml@a936fcc673bca2e70cdc2dcb0880658b5ecb65ef
uses: graasp/graasp-deploy/.github/workflows/cdelivery-s3.yml@v1
with:
build-folder: 'build'
tag: ${{ github.event.client_payload.tag }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cdeployment-s3-caller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
graasp-deploy-s3-workflow:
name: Graasp Player
# Reference reusable workflow file. Using the commit SHA is the safest for stability and security
uses: graasp/graasp-deploy/.github/workflows/cdeployment-s3.yml@a936fcc673bca2e70cdc2dcb0880658b5ecb65ef
uses: graasp/graasp-deploy/.github/workflows/cdeployment-s3.yml@v1
with:
build-folder: 'build'
tag: ${{ github.event.client_payload.tag }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cintegration-s3-caller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ on:
test-execution:
description: 'Execute test job (Default: true)'
type: choice
options:
- yes
- no
options:
- yes
- no
default: yes
# This workflow is made up of one job that calls the reusable workflow in graasp-deploy
jobs:
graasp-deploy-s3-workflow:
name: Graasp Player
# Reference reusable workflow file. Using the commit SHA is the safest for stability and security
uses: graasp/graasp-deploy/.github/workflows/cintegration-s3.yml@a936fcc673bca2e70cdc2dcb0880658b5ecb65ef
uses: graasp/graasp-deploy/.github/workflows/cintegration-s3.yml@v1
with:
build-folder: 'build'
secrets:
Expand Down
55 changes: 23 additions & 32 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
name: cypress tests
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: install
run: yarn
name: Cypress CI

- name: cypress run
uses: cypress-io/github-action@v2
env:
REACT_APP_API_HOST: ${{ secrets.REACT_APP_API_HOST }}
REACT_APP_GRAASP_COMPOSE_HOST: http://localhost:3111
REACT_APP_AUTHENTICATION_HOST: http://localhost:3001
REACT_APP_NODE_ENV: test
# mock values
REACT_APP_HIDDEN_ITEM_TAG_ID: 12345678-1234-1234-1234-123456789012
REACT_APP_PUBLIC_TAG_ID: 22345678-1234-1234-1234-123456789013
with:
install: false
config: baseUrl=http://localhost:3000
start: yarn start:ci
wait-on: 'http://localhost:3000'
wait-on-timeout: 180
browser: chrome
headless: true
quiet: true
# Control when the action will run
on:
# Triggers the workflow on push events except for the main branch
push:
branches-ignore:
- main
- master

- name: coverage report
run: npx nyc report --reporter=text-summary
# This workflow is made up of one job that calls the reusable workflow in graasp-deploy
jobs:
graasp-deploy-cypress-workflow:
# Replace with repository name
name: Cypress caller template
# Replace 'main' with the hash of a commit, so it points to an specific version of the reusable workflow that is used
# Reference reusable workflow file. Using the commit SHA is the safest for stability and security
uses: graasp/graasp-deploy/.github/workflows/cypress.yml@v1
with:
# Test values
node-env-test: test
hidden-item-tag-id-test: 12345678-1234-1234-1234-123456789012
# Insert required secrets based on repository with the following format: ${{ secrets.SECRET_NAME }}
secrets:
api-host-test: ${{ secrets.REACT_APP_API_HOST }}
3 changes: 3 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
/>
<script>
document.domain = '%REACT_APP_DOMAIN%';
</script>
<title>Graasp Player</title>
</head>
<body>
Expand Down