Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasholzer committed Aug 9, 2024
1 parent 968c562 commit aa75c94
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 40 deletions.
40 changes: 0 additions & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ workflows:
'Test & Check 🕵️‍♀️':
jobs:
- formatting
- e2e-tests:
context: [shared-secrets]

executors:
node:
Expand Down Expand Up @@ -123,41 +121,3 @@ jobs:
- npm-install-deps
- run: npm run format:ci
- run: npm run lint:ci

e2e-tests:
docker:
- image: cimg/node:22.5.1
steps:
- checkout
- run:
name: Create .npmrc
command: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
- run: npm install -g @netlify/[email protected]
- run: which netlify-e2e

# - name: Authenticate with private NPM package
# run: |
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_READ_ONLY_TOKEN }}" > /home/runner/work/_temp/.npmrc
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_READ_ONLY_TOKEN }}" > .npmrc
# - 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: |
# 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 }}"

# - name: Save npm logs on failure
# if: failure() # This step only runs if the previous steps failed
# uses: actions/upload-artifact@v4
# with:
# name: npm-logs
# path: /home/runner/.npm/_logs
27 changes: 27 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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: |
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 }}"

0 comments on commit aa75c94

Please sign in to comment.