Run Tests #56
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: Run Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- master | |
# Run this test every day to catch any regressions. | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
production: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- run: npm ci | |
- run: npm run format:check | |
- run: npm run build | |
- run: | | |
npm run start & | |
npm run test | |
env: | |
ORY_KRATOS_URL: https://playground.projects.oryapis.com/ | |
staging: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- run: npm ci | |
- run: npm run format:check | |
- run: npm run build | |
- run: | | |
npm run start & | |
npm run test | |
env: | |
ORY_KRATOS_URL: https://blissful-greider-9hmtg26xai.projects.staging.oryapis.dev/ | |
self-hosted: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- run: npm ci | |
- run: npm run format:check | |
- run: npm run build | |
- run: | | |
git clone --depth 1 --branch master https://github.com/ory/kratos.git ../kratos | |
cd ../kratos | |
git checkout master | |
make docker | |
docker-compose -f quickstart.yml -f quickstart-latest.yml -f contrib/quickstart/kratos/cloud/quickstart.yml up --build --force-recreate -d | |
- run: | | |
npm run start & | |
npm run test | |
env: | |
ORY_KRATOS_URL: http://localhost:4455 |