From 653da99e7b86b3365085c0a15e51061905ae372f Mon Sep 17 00:00:00 2001 From: Doom9527 <164460473+Doom9527@users.noreply.github.com> Date: Thu, 11 Apr 2024 18:45:17 +0800 Subject: [PATCH] Change the screwdriver to GitHub Actions. (#10) The issue has been solved. --- .github/workflows/ci-cd.yml | 26 ++++++++++++ screwdriver.yaml | 82 ------------------------------------- 2 files changed, 26 insertions(+), 82 deletions(-) create mode 100644 .github/workflows/ci-cd.yml delete mode 100644 screwdriver.yaml diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 0000000000..ff1baec8bc --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -0,0 +1,26 @@ +name: Elide CI/CD + +on: + pull_request: + branches: + - '*' + types: [opened, synchronize] + push: + branches: + - master + +jobs: + tests: + name: Unit & Integration Tests + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' + - name: Run unit & integration tests + run: mvn -B clean verify + diff --git a/screwdriver.yaml b/screwdriver.yaml deleted file mode 100644 index 1121c423ee..0000000000 --- a/screwdriver.yaml +++ /dev/null @@ -1,82 +0,0 @@ -cache: - pipeline: ["~/.m2"] - -annotations: - screwdriver.cd/restrictPR: fork - -shared: - annotations: - screwdriver.cd/cpu: TURBO - screwdriver.cd/ram: TURBO - - environment: - #Fetches history so Sonar can assign blame. - GIT_SHALLOW_CLONE: false - -jobs: - master-commit: - image: maven:3.8.5-openjdk-17 - requires: [~pr, ~commit] - secrets: - - COVERALLS_REPO_TOKEN - steps: - - build: mvn -B clean verify coveralls:report - - elide-7-build: - image: maven:3.8.5-openjdk-17 - requires: [~pr:elide-7.x, ~commit:elide-7.x] - secrets: - - COVERALLS_REPO_TOKEN - steps: - - build: mvn -B clean verify coveralls:report - - elide-6-build: - image: maven:3.8.2-openjdk-11 - requires: [~pr:elide-6.x, ~commit:elide-6.x] - secrets: - - COVERALLS_REPO_TOKEN - steps: - - build: mvn -B clean verify coveralls:report - - elide-5-build: - image: maven:3.6.3-jdk-8 - requires: [~pr:elide-5.x, ~commit:elide-5.x] - secrets: - - COVERALLS_REPO_TOKEN - steps: - - build: mvn -B clean verify coveralls:report - - elide-4-build: - image: maven:3.6.3-jdk-8 - requires: [~pr:elide-4.x, ~commit:elide-4.x] - secrets: - - COVERALLS_REPO_TOKEN - steps: - - build: mvn -B clean verify coveralls:report - - release-java17: - image: maven:3.8.5-openjdk-17 - secrets: - - GPG_KEYNAME - - GPG_PASSPHRASE - - GPG_ENCPHRASE - - OSSRH_USER - - OSSRH_TOKEN - requires: [~tag:/^7/, ~release:/^7/] - steps: - - prebuild: microdnf install --nodocs openssl gnupg - - build: "screwdriver/scripts/build.sh" - - publish: "screwdriver/scripts/publish.sh" - - release-java11: - image: maven:3.8.2-openjdk-11 - secrets: - - GPG_KEYNAME - - GPG_PASSPHRASE - - GPG_ENCPHRASE - - OSSRH_USER - - OSSRH_TOKEN - requires: [~tag:/^6/, ~release:/^6/] - steps: - - build: "screwdriver/scripts/build.sh" - - publish: "screwdriver/scripts/publish.sh"