chore: update #13
Workflow file for this run
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: 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 | |
env: | |
BRANCH: ${{ env.GITHUB_REF_NAME }} | |
- name: Trigger Netlify E2E image build | |
id: extract-deploy-id | |
run: | | |
cat ./remlink.config.json | |
output=$(netlify-e2e build-image ./remlink.config.json) | |
echo "pipelineId=$(echo $output | jq -r '.pipelineId')" >> $GITHUB_ENV | |
echo "testImageTag=$(echo $output | jq -r '.tag')" >> $GITHUB_ENV | |
echo "workingDir=\"$(npm root -g)/@netlify/e2e\"" >> $GITHUB_ENV | |
- name: Echo extracted values | |
run: | | |
echo "The extracted pipelineId is: ${{ env.pipelineId }}" | |
echo "The extracted Tag is: ${{ env.testImageTag }}" | |
echo "${{ env.workingDir }}" | |
ls -lah "${{ env.workingDir }}" | |
- run: | | |
cd ${{ env.workingDir}} | |
ls -lah | |
pnpm run e2e |