Add GH Action for CI #5
Workflow file for this run
This file contains hidden or 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
name: test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: { types: [opened, reopened, synchronize, ready_for_review] } | |
push: { branches: [ main ] } | |
jobs: | |
soundness: | |
name: Soundness Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run script | |
run: ./scripts/soundness.sh | |
build-site: | |
name: Build the Jekyll Site | |
runs-on: ubuntu-latest | |
container: ruby:3.3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build site | |
run: bundle install && bundle exec jekyll build | |
test-openapi: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Run OpenAPI Tester | |
working-directory: openapi/TestSwiftOrgClient | |
env: | |
DOWNLOADSWIFTORG_SERVER_NAME: local | |
run: | | |
docker compose -f ../../docker-compose.yaml run build | |
docker compose -f ../../docker-compose.yaml up website | |
swift run swiftorgClient | |
swift run downloadswiftorgClient |