-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.1 KB
/
test-on-branch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# .github/workflows/docker-build-on-push.yml
name: Build & Test
on:
push:
branches:
- "services/*/*"
paths-ignore:
- "**.md"
- "**/swagger.json"
jobs:
test-on-commit:
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/5.0.1/hurl_5.0.1_amd64.deb
sudo dpkg -i hurl_5.0.1_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}} ${{secrets.CROSSREF_API_KEY}}
ls -l services/*/.env
- name: Build Docker Image & Test
shell: bash
run: |
bin/test-on-branch.sh ${{ github.ref_name }}