diff --git a/.github/workflows/check-pr.yaml b/.github/workflows/check-pr.yaml new file mode 100644 index 000000000..7b14e5843 --- /dev/null +++ b/.github/workflows/check-pr.yaml @@ -0,0 +1,16 @@ +name: Check PR +on: pull_request + +jobs: + maven: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + - name: Run Checks + run: mvn --batch-mode --no-transfer-progress --update-snapshots verify diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml new file mode 100644 index 000000000..0f5bbf082 --- /dev/null +++ b/.github/workflows/publish-snapshot.yml @@ -0,0 +1,40 @@ +name: Publish Snapshot +on: + push: + branches: + - master + +jobs: + maven: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + - name: Publish snapshot + run: mvn --batch-mode -no-transfer-progress --update-snapshots deploy + env: + MAVEN_USERNAME: ${{ vars.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ vars.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build and push + uses: docker/build-push-action@v4 + with: + push: true + tags: | + cqframework/cqf-ruler:latest + alphora/cqf-ruler:latest + build-args: COMMIT_HASH=${{ env.GITHUB_SHA }} diff --git a/.travis.settings.xml b/.travis.settings.xml deleted file mode 100644 index a17da14cd..000000000 --- a/.travis.settings.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - ossrh - ${env.OSSRH_USERNAME} - ${env.OSSRH_PASSWORD} - - - - - ossrh - - true - - - ${env.GPG_EXECUTABLE} - ${env.GPG_PASSPHRASE} - - - - \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7cbb08a11..000000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -language: java -jdk: openjdk11 -os: linux -dist: xenial -services: - - docker -cache: - timeout: 180 - directories: - - "$HOME/.m2/repository" -install: - - ./scripts/install.sh -script: - - ./scripts/test.sh -before_cache: - - rm -rf $HOME/.m2/repository/org/opencds/cqf/ -after_success: - - test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" && ./scripts/deploy.sh -deploy: - provider: releases - api_key: - secure: M4rVJAVsMEnKPKas8jt+Ih/VVw1kpeyYyDP7wQxklW4qNiCRPBCx+UBSEx3J4JF4BWSNUCwER/6XGo530bDwA2IFzlEzfuAqB2FJLCT2Po9KvaWChEGs9GSRxDybkT2mqOIriEm1ePO+1eNs2yjY/qpmEGgYik8cs9TMnt1io0s6IGVHS1bl0bw0urwVti7TjgMNmHrjtVoO9pwj7REs5htXNhl7QuNOfhCawMkkLvi7Q8vUQnYBffT6llDZVWkAKfHfvHGA2HDBTB48sa9EciVgy7ORKEmhba0vinn3Vbfm4RaOoMTSjJjlBC+ojeHyYgBxoQFnMrXFO21x7vlPAbbSKviOuQUxxFr8OJ9Ijb4JXWTWNBYyTA9a2E8BQw48zbqw7vZRkw+x2x1JUZ3Vb+UW13iLASwQvGC+b/ivSZHxTZj8YNoHBnzU3fbJYZzpp28NKApVBsNI1+X07fZ0eq18bzIXy6XU5hb7aVhn4XqmUEAE1+kanxSFwq7DCC4OJpdKSaV9Dq9+9ZpJvJcsOZ9uP10E6dMWKoDPF1vME/FK43riRyZ2Nax3pqq3q21TEthOWg3LfETvk4hGYfAkzsN/+nKlnwHHlxKCJW3p7KKjN6FE9IZZ3xhL7CdK+dKA9jwfgo2Cq9QlnmpJDM9vfZhawzna9JDh0wInZh4H+oc= - file_glob: true - file: "**/target/*.jar" - skip_cleanup: true - name: CQF Ruler $TRAVIS_TAG - overwrite: true - target_commitish: $TRAVIS_COMMIT - on: - tags: true -notifications: - slack: - - rooms: - - secure: UcwCk/9xDrkLXtaHPXJAsJuyZN7MIzRunndBpxMk/fwiAF56ZscPMu5IlPN72x2TqdkDPDAykGnczQ/w76txFcIzyH9/06fmXh//8XL/YWpERsfCW9q1XOn+xTTXwrxF5f6eaAMqYlNDe5tXLCOHCEnuHpdFNnFoNasZ2dTqaDNP+jjPLlSO0zhVv5zW4d75lpklg2+SQra5smgKW4eXJO6z4mXFJtkhN/lKwlgKCKbC+G8o3QO+zSJouyeCmr6xdPkTob1va8jNuR1SRIlk943btmZAUlfLh9pUMO2Hhay1BJhXpFrO5ZE3eCwU9jaoCyoTTPcVBytOKKNbGr1miRM/fDdxDYUMGQbqmkKDMqTZzkeLSbQPH92bs2lUILZf0xr2wbi8mZICdz0HZwRkaLzF6okIeQ69/b7/QNbDXAxKlT0DaShtidVbUfwNb/mUOXc3fkjn8vShPn7n9xtdLQvrGR9bJVHHBIDYS+dge2EtdPzsrmHsEhGS153uytPgF+zcYwRN83Xpyjk78+AMQFmzorErz6I+74ZQyXFzN4Z2Z1SfeGGpBp7uUK7dDD1WYVk370hf5oU19euWdSWmzBDajrLlalH25VKt140lQBMU6QyDmdraWM0f0iut034QbTUisOo+O2Km0AhZdTVTVmZSyLOJ6Ec+lusU2AHtayM= - on_success: always - on_failure: never - - rooms: - - secure: CNBq9ztma598N0CBeQNcvwvx6d+jHnI0B8iWAedqJ+oX+kYwCb4tBRTEwtflB0aQndAzn/5fba0S4tQ1gP9liRWb+RQIeBHVQgopEg7iNXYj6d4NIYBmVxpVq44szQI8T7mQJN/v1DFjXoCRbeMKiA5jN8OCrM4kowF4O15b+9RJ1bxbJULzop5K3WlZQQbsDSdxIuR3CGCmLakvf5G1cqHmHE1xWtXWFrNOSe32bp/Pdv7Vo5jaIeLG1b70G4SUUKk60+cwK9/NH4okewYgU5KlI+q51UW0Io8KEmsoFWV49dJ+1NfINM7uArVS3nNeJViMumR2ba1L1gUjGXj9FkuuIM8OS9FaxSss0IaQ8z+gNekuQLyvrE4020UNGY4/b1B8IueQcs+sucs4juCnvyTGdAEGiT23mVWdurqjT6qFTzYHSbXXd23KlmFoeLs46Iwo4mXwx6pxoUmBbNKpSXs7/irCz0GJHXjJAOb3JXxyBohyimKlfBZu1ZJhLytcsQD9SIVpX5B97SD1xD99BAN3sFgDUtZ91usLc3eSg1jaHmaSimw9PVGcoXHEkxiJYzQVPuZNQtwmRSu0zezAv9DhbkNzZAEBkC+vt1dBWzj9T9An3AwIlyANSb0P2qtC7wreHzvLq5duHA0zKGaMjtAZecnEXpIeuhuJhfximP4= - on_success: never - on_failure: always