Skip to content

Commit

Permalink
🐛 Fix Github actions for unversioned API.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeribekker committed May 22, 2024
1 parent 1894d2d commit cffe287
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-postman-collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Create tests folder
run: mkdir -p ./tests/postman
- name: Generate Postman collection
run: openapi2postmanv2 -s ./src/referentielijsten/api/${{ matrix.version }}/openapi.yaml -o ./tests/postman/collection.json --pretty
run: openapi2postmanv2 -s ./src/referentielijsten/api/openapi.yaml -o ./tests/postman/collection.json --pretty
2 changes: 1 addition & 1 deletion .github/workflows/generate-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: npm install -g @openapitools/openapi-generator-cli
- name: Determing oas path
id: vars
run: echo ::set-output name=oas::./src/referentielijsten/api/${{ matrix.version }}/openapi.yaml
run: echo ::set-output name=oas::./src/referentielijsten/api/openapi.yaml
- name: Validate schema
run: openapi-generator-cli validate -i ${{ steps.vars.outputs.oas }}
- name: Generate Java client
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-oas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
- name: Install spectral
run: npm install -g @stoplight/spectral@5
- name: Run OAS linter
run: spectral lint ./src/referentielijsten/api/${{ matrix.version }}/openapi.yaml
run: spectral lint ./src/referentielijsten/api/openapi.yaml
10 changes: 5 additions & 5 deletions .github/workflows/quick-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download docker-compose file
run: wget https://raw.githubusercontent.com/maykinmedia/objects-api/master/docker-compose-quickstart.yml -O docker-compose-qs.yml
run: wget https://raw.githubusercontent.com/maykinmedia/referentielijsten/master/docker-compose.yml -O docker-compose-qs.yml
- name: Overwrite the docker-compose file to get the "current" one
run: cp docker-compose-quickstart.yml docker-compose-qs.yml
run: cp docker-compose-qs.yml docker-compose.yml
- name: Start docker containers
run: docker-compose -f docker-compose-qs.yml up -d
run: docker-compose up -d --no-build
- name: Wait until DB container starts
run: sleep 10
- name: Load fixtures
run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py loaddata demodata
# - name: Load fixtures
# run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py loaddata demodata
- name: Create superuser
run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py createsuperuser --username admin --email admin@admin.nl --no-input
- name: Check main page
Expand Down

0 comments on commit cffe287

Please sign in to comment.