Initial version from github actions workflow #5
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
name: RIT Action Continuous Integration Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
test-rit-docker: | |
name: Test RIT Action docker image | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
services: | |
registry: | |
image: registry:2 | |
ports: | |
- 5001:5000 | |
env: | |
TEST_TAG: localhost:5001/actions/container-action:latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Setup Docker BuildX | |
id: setup-buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
install: true | |
driver-opts: network=host | |
platforms: linux/amd64 | |
- name: Build the RIT Action Container | |
id: build | |
uses: docker/build-push-action@v6 | |
with: | |
context: .github/images | |
push: true | |
tags: ${{ env.TEST_TAG }} | |
- name: Run the RIT Container Action | |
id: run | |
env: | |
RSKJ_BRANCH: 'master' | |
FEDERATOR_BRANCH: 'master' | |
run: | | |
docker run \ | |
--env RSKJ_BRANCH="${{ env.RSKJ_BRANCH }}" \ | |
--env FEDERATOR_BRANCH="${{ env.FEDERATOR_BRANCH }}" \ | |
--rm ${{ env.TEST_TAG }} | |
test-rit-action: | |
name: GitHub Actions Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Test Local RIT Action | |
id: test-rit-action | |
uses: ./ | |
with: | |
rskj-branch: master | |
federator-branch: master | |
- name: Print RIT Status and Message | |
id: output | |
run: | | |
echo "RIT Status = ${{ steps.test-action.outputs.status }}" | |
echo "RIT Message = ${{ steps.test-action.outputs.message }}" |