feat(data-homogenise): create service #300
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 }} |