Skip to content

Commit

Permalink
ci: split ci into two files
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasDiablo committed Jul 17, 2024
1 parent a937b86 commit 44f98e7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,38 @@ on:
- "ws-*@*"

jobs:
build:
test-on-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout from Git
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Hurl
run: |
curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/4.1.0/hurl_4.1.0_amd64.deb
sudo dpkg -i hurl_4.1.0_amd64.deb
hurl --version
- name: Build .env from Github Actions secrets
shell: bash
run: |
bin/create-env.sh ${{ github.ref_name }} ${{ secrets.WEBDAV_LOGIN }} ${{ secrets.WEBDAV_PASSWORD }} ${{ secrets.WEBDAV_URL }} ${{secrets.OPENALEX_API_KEY}} ${{secrets.UNPAYWALL_API_KEY}}
ls -l services/*/.env
- name: Build Docker Image & Test
shell: bash
run: |
bin/test-on-tag.sh ${{ github.ref_name }}
build-on-tag:
needs:
- test-on-tag
runs-on: ubuntu-latest
steps:
- name: Checkout from Git
uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
- name: Build Docker Image & Test
shell: bash
run: |
bin/build-and-test.sh ${{ github.ref_name }}
bin/test-on-branch.sh ${{ github.ref_name }}
File renamed without changes.

0 comments on commit 44f98e7

Please sign in to comment.