Skip to content

Merge pull request #297 from Synthetixio/staging #448

Merge pull request #297 from Synthetixio/staging

Merge pull request #297 from Synthetixio/staging #448

Workflow file for this run

name: e2e tests
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:

Check failure on line 6 in .github/workflows/e2e-test-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/e2e-test-ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- run: yarn install
- run: yarn dev & yarn e2e:run
env:
NEXT_DUNE_API_KEY: ${{ vars.NEXT_DUNE_API_KEY }}
- name: Tests ✅
if: ${{ success() }}
run: |
curl --request POST --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' --header 'content-type: application/json' --data '{
"context": "tests",
"state": "success",
"description": "Tests passed",
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}'
- name: Tests 🚨
if: ${{ failure() }}
run: |
curl --request POST --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' --header 'content-type: application/json' --data '{
"context": "tests",
"state": "failure",
"description": "Tests failed",
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}'