Creating a central repo where reusable workflows are being served in parameterised manner.Keeping all of them in .github/workflows
folder/path. And to access those, we can call it as below.
uses: CondeNast/vs-github-actions/.github/workflows/e2e-test.yaml@main
We have the following workflows:
This workflow installs dependencies, checks for audit and runs the unit tests.
- name:
unit-test.yaml
- required params:
NPM_TOKEN
npm token for @condenast
This workflow builds the application, starts the mock server and runs cypress tests as per parameterised command.
- name:
e2e-test.yaml
- required params:
NPM_TOKEN
npm token for @condenastCYPRESS_RUN
command in your repo that run cypress tests, e.g.yarn run test:e2e --headless --browser chrome
Docker workflow builds the docker image by logging into quay
- name:
docker.yaml
- required params:
NPM_TOKEN
npm token for @condenastQUAY_USER
User name to login in quayQUAY_TOKEN
quay password/token
Deploys a serverless app to AWS.
- name:
serverless-deploy.yaml
- required params:
NPM_TOKEN
npm token for @condenastAWS_ACCESS_KEY_ID
aws access key id to deploy serverless stackAWS_SECRET_ACCESS_KEY
aws secret key to deploy serverless stack