Skip to content

chore: test

chore: test #5

Workflow file for this run

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
with:
node-version: '*'
check-latest: true
registry-url: 'https://registry.npmjs.org'
- name: Authenticate with private NPM package
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_READ_ONLY_TOKEN }}" > ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_READ_ONLY_TOKEN }}" > .npmrc
- name: Install Netlify E2E
run: npm install @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: |
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
- name: Echo extracted values
run: |
echo "The extracted pipelineId is: ${{ env.pipelineId }}"
echo "The extracted Tag is: ${{ env.testImageTag }}"