-
Notifications
You must be signed in to change notification settings - Fork 57
29 lines (26 loc) · 917 Bytes
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Netlify E2E Tests
on: push
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
- name: Install Netlify E2E
run: npm install -g @netlify/[email protected]
- name: Create Remlink Config
run: node ./tools/create-remlink.config.js
- name: Trigger Netlify E2E image build
id: extract-deploy-id
run: |
netlify-e2e -h
output=$(netlify-e2e build-image ./remlink.config.json)
echo "$output"
echo "pipelineId=$(echo "output" | jq -r '.pipelineId')" >> $GITHUB_ENV
echo "testImageTag=$(echo "output" | jq -r '.tag')" >> $GITHUB_ENV
- name: Echo extracted values
run: |
echo "The extracted pipelineId is: ${{ env.pipelineId }}"
echo "The extracted Tag is: ${{ env.testImageTag }}"