Skip to content

Commit

Permalink
update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dualcnhq committed May 22, 2024
1 parent 6265802 commit 4cd872c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .github/actions/setup-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/call-run-individual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
PATRON_PASSWORD: ${{ secrets.PATRON_PASSWORD }}

steps:
- uses: actions/checkout@v4

- name: Setup test environment
uses: ./.github/actions/setup-env

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/call-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup test environment
uses: ./.github/actions/setup-env

Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/manual-trigger-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ on:
description: 'CLI command you want to execute in the pipeline'

jobs:
- name: Setup test environment
manual:
steps:
- uses: actions/checkout@v4

- name: Setup test environment
uses: ./.github/actions/setup-env

- shell: bash
env:
ARCHIVE_EMAIL: ${{ secrets.ARCHIVE_EMAIL }}
ARCHIVE_PASSWORD: ${{ secrets.ARCHIVE_PASSWORD }}
PATRON_EMAIL: ${{ secrets.PATRON_EMAIL }}
PATRON_PASSWORD: ${{ secrets.PATRON_PASSWORD }}
run: |
${{ github.event.inputs.input_command }}
- shell: bash
env:
ARCHIVE_EMAIL: ${{ secrets.ARCHIVE_EMAIL }}
ARCHIVE_PASSWORD: ${{ secrets.ARCHIVE_PASSWORD }}
PATRON_EMAIL: ${{ secrets.PATRON_EMAIL }}
PATRON_PASSWORD: ${{ secrets.PATRON_PASSWORD }}
run: |
${{ github.event.inputs.input_command }}

0 comments on commit 4cd872c

Please sign in to comment.