From ce677a839837b8c1ca42679a45835efd11f98877 Mon Sep 17 00:00:00 2001 From: Junichi Kato Date: Wed, 21 Jul 2021 21:43:13 +0900 Subject: [PATCH] Update .github/workflows & remove .circleci --- .circleci/config.yml | 35 ----------------------------------- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 25 ------------------------- 3 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 6f2c30b..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,35 +0,0 @@ -version: 2 -jobs: - build: - branches: - ignore: - - master - environment: - - JAVA_OPTS: "-XX:ReservedCodeCacheSize=256M -Xms1g -Xmx3g -Xss2m" - - SBT_TEST_TIME_FACTOR: "2" - machine: true - steps: - - run: - command: | - sudo apt-get update -qq && sudo apt-get install -y libaio1 libevent-dev - sudo apt-get install -y software-properties-common - sudo apt-get install -y openjdk-8-jdk - sudo apt-get update -qq - sudo apt-get install -y maven git - echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 - sudo apt-get update -qq - sudo apt-get install sbt - no_output_timeout: 30m - - checkout - - restore_cache: - key: scala-library-dependencies-{{ checksum "build.sbt" }}-{{ checksum "project/Dependencies.scala" }} - - run: - command: | - sbt clean ++"2.12.13" scalafmtCheckAll scalafmtSbtCheck test - sbt clean ++"2.13.6" scalafmtCheckAll scalafmtSbtCheck test - sbt clean ++"3.0.1" scalafmtCheckAll scalafmtSbtCheck test - no_output_timeout: 1h - - save_cache: - paths: [ "~/.sbt/boot", "~/.m2", "~/.ivy2", "~/.cache/coursier", "~/.wixMySQL" ] - key: scala-library-dependencies-{{ checksum "build.sbt" }}-{{ checksum "project/Dependencies.scala" }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25d738c..d797a69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: fail-fast: false matrix: jdk: [ adopt@1.8, adopt@1.11, adopt@1.14 ] - scala: [ 2.13.5, 2.12.13, 2.11.12 ] + scala: [ 3.0.1, 2.13.5, 2.12.13 ] runs-on: ubuntu-latest needs: lint env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68050a8..1e37e60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,33 +4,8 @@ on: tags: - v[1-9]+.[0-9]+.[0-9]+ jobs: - test: - strategy: - fail-fast: false - matrix: - os: [ ubuntu-latest ] - jdk: [ adopt@1.8, adopt@1.11, adopt@1.14 ] - scala: [ 2.11.12, 2.12.13, 2.13.5 ] - runs-on: ${{ matrix.os }} - env: - JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 - JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 - AWS_REGION: ap-northeast-1 - TEST_TIME_FACTOR: 3 - steps: - - uses: actions/checkout@v2.3.4 - with: - fetch-depth: 0 - - uses: olafurpg/setup-scala@v12 - with: - java-version: ${{ matrix.jdk }} - - uses: coursier/cache-action@v6 - - run: sbt -v ++${{ matrix.scala }} test - - name: clean up - run: "${GITHUB_WORKSPACE}/.github/clean-up.sh" release: runs-on: ubuntu-latest - needs: test env: JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8