From 76b3e44183536411aa95a089841da1180c0c654b Mon Sep 17 00:00:00 2001 From: Jay Sucharitakul Date: Tue, 4 Jan 2022 16:36:08 -0800 Subject: [PATCH 1/4] first test --- .github/workflows/pull-request.yml | 82 ++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 000000000..ceaddd020 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,82 @@ +name: Pull Request +'on': + # push: + # branches: + # - master + pull_request: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + env: + ACTION_JDK_VERSION: openjdk8 + SCALA_VERSION: 2.13.7 + #DEPLOY_TOKEN: "Em0gPbHUk/RDOXaC/Y4ddtePVv21cHltj6z5noIS3Ne3Z4OgDzxTknce4QWDjkjfeIToFPuCZiesiifWgw1eAx9xKDA4ijDe7PmMICU2nnn17YRk6bRUBFtX4bb6c0BN7PrbaQOMTbgqt19TntPyELHQ3L0btvo51wV0siF/K6uvS3oK45XRYLqThYCjvoygehGRjd6WaNqvGForKZvj652sPjwmJFhpHYpCxyoZ4LaXcLTRQBQ4M4h1UwIbd0V9Hn0AiOR8+KIqMzwrbIFrtt2vN5RoUfoZkRK2OumcsvydVbliGndr5fz+hm08tTEuwpW6dUffogvsp72Dk6rIKoDckEBwZ6M10u4ECj+Op3byVyR5/a84BQQ/RzaDFB69J1wVZnWLuMxDT5WQTLzoTJzYsDm03/c8X+ojeWsGwn9XqxKIyoHhltra1lLmRSa3TavAQWj9Lol4qvqz4l/ftMo0wTrD75JwyRzK/llwO+U5XIStXIsaXtmxxfbRSdJt8pl24s8DWQQ9ugT6RLy6/1OsFrTwToybO4oeGYhmbwwo7bwheG92bA8uC1SDm6ICnh3VbVnzbgAaxtZ/gNk6yGtNKSN50flj45nhvT0BQyzg67PwZMYlLyeLUVuMSFDWjHI+mTeV5qRvn6pq2poZ0DFzJhZE1EJDWBvmS8o6ZH0=" + steps: + # - uses: jwalton/gh-find-current-pr@v1 + # id: findPr + # with: + # # Can be "open", "closed", or "all". Defaults to "open". + # state: open + - name: Checkout + uses: actions/checkout@v2 + - name: Setup JDK + uses: olafurpg/setup-scala@v10 + with: + java-version: adopt@1.8.0 + # - name: Before Install + # - uses: actions/checkout@v2 + # - run: | + # if [ "x${ENCRYPTION_PASSWORD}" != "x" ]; then + # openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in secring.gpg.enc -out local.secring.gpg -d + # openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in pubring.gpg.enc -out local.pubring.gpg -d + # openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in credentials.sbt.enc -out local.credentials.sbt -d + # fi + - name: Cache Coursier Cache + uses: coursier/cache-action@v6.2 + - run: sbt ++$SCALA_VERSION -jvm-opts jvmopts clean coverage test + - run: sbt ++$SCALA_VERSION coverageReport + - run: sbt ++$SCALA_VERSION coverageAggregate + - run: sbt ++$SCALA_VERSION codacyCoverage + # - name: Cache multiple paths + # uses: actions/cache@v2 + # with: + # path: |- + # $HOME/.sbt + # $HOME/.ivy2 + # key: '${{ runner.os }}-${{ hashFiles(''TODO'') }}' + # - uses: actions/checkout@v2 + + # build: + # runs-on: '${{ matrix.os }}' + # strategy: + # matrix: + # os: + # - ubuntu-18.04 + # steps: + # - name: Cache multiple paths + # uses: actions/cache@v2 + # with: + # path: |- + # $HOME/.sbt + # $HOME/.ivy2 + # key: '${{ runner.os }}-${{ hashFiles(''TODO'') }}' + # - uses: actions/checkout@v2 + # - run: | + # if [ "x${ENCRYPTION_PASSWORD}" != "x" ]; then + # openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in secring.gpg.enc -out local.secring.gpg -d + # openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in pubring.gpg.enc -out local.pubring.gpg -d + # openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in credentials.sbt.enc -out local.credentials.sbt -d + # fi + # - run: _JAVA_OPTIONS= + # - run: sbt ++$TRAVIS_SCALA_VERSION -jvm-opts jvmopts clean coverage test + # - run: sbt ++$TRAVIS_SCALA_VERSION coverageReport + # - run: sbt ++$TRAVIS_SCALA_VERSION coverageAggregate + # - run: sbt ++$TRAVIS_SCALA_VERSION codacyCoverage + # - run: > + # test "${TRAVIS_PULL_REQUEST}" = 'false' && test + # "${TRAVIS_JDK_VERSION}" = 'openjdk8' && sbt ++$TRAVIS_SCALA_VERSION + # 'set credentials += Credentials("Sonatype Nexus Repository Manager", + # "oss.sonatype.org", System.getenv("SONATYPE_USER"), + # System.getenv("SONATYPE_PASS"))' clean publishSigned From e99185886581c99efdc81aec00e821f2b2a141e9 Mon Sep 17 00:00:00 2001 From: Jay Sucharitakul Date: Thu, 6 Jan 2022 00:14:24 -0800 Subject: [PATCH 2/4] #746: tests passed with act --- .github/workflows/pull-request.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index ceaddd020..71ae2a487 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -7,7 +7,7 @@ name: Pull Request branches: - master jobs: - build: + test: runs-on: ubuntu-latest env: ACTION_JDK_VERSION: openjdk8 @@ -33,9 +33,9 @@ jobs: # openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in pubring.gpg.enc -out local.pubring.gpg -d # openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in credentials.sbt.enc -out local.credentials.sbt -d # fi - - name: Cache Coursier Cache - uses: coursier/cache-action@v6.2 - - run: sbt ++$SCALA_VERSION -jvm-opts jvmopts clean coverage test + # - name: Cache Coursier Cache + # uses: coursier/cache-action@v6.2 + - run: sbt ++$SCALA_VERSION clean coverage test - run: sbt ++$SCALA_VERSION coverageReport - run: sbt ++$SCALA_VERSION coverageAggregate - run: sbt ++$SCALA_VERSION codacyCoverage @@ -70,10 +70,10 @@ jobs: # openssl aes-256-cbc -pass pass:${ENCRYPTION_PASSWORD} -in credentials.sbt.enc -out local.credentials.sbt -d # fi # - run: _JAVA_OPTIONS= - # - run: sbt ++$TRAVIS_SCALA_VERSION -jvm-opts jvmopts clean coverage test - # - run: sbt ++$TRAVIS_SCALA_VERSION coverageReport - # - run: sbt ++$TRAVIS_SCALA_VERSION coverageAggregate - # - run: sbt ++$TRAVIS_SCALA_VERSION codacyCoverage + # - run: sbt -J-Xms256m ++$TRAVIS_SCALA_VERSION -jvm-opts jvmopts clean coverage test + # - run: sbt -J-Xms256m ++$TRAVIS_SCALA_VERSION coverageReport + # - run: sbt -J-Xms256m ++$TRAVIS_SCALA_VERSION coverageAggregate + # - run: sbt -J-Xms256m ++$TRAVIS_SCALA_VERSION codacyCoverage # - run: > # test "${TRAVIS_PULL_REQUEST}" = 'false' && test # "${TRAVIS_JDK_VERSION}" = 'openjdk8' && sbt ++$TRAVIS_SCALA_VERSION From 7cd785258caa020a35423ac203e809de48af8a8c Mon Sep 17 00:00:00 2001 From: Jay Sucharitakul Date: Sat, 22 Jan 2022 11:08:23 -0800 Subject: [PATCH 3/4] Cleaned up tokens --- .github/workflows/pull-request.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 71ae2a487..b4e40e8fe 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -12,7 +12,6 @@ jobs: env: ACTION_JDK_VERSION: openjdk8 SCALA_VERSION: 2.13.7 - #DEPLOY_TOKEN: "Em0gPbHUk/RDOXaC/Y4ddtePVv21cHltj6z5noIS3Ne3Z4OgDzxTknce4QWDjkjfeIToFPuCZiesiifWgw1eAx9xKDA4ijDe7PmMICU2nnn17YRk6bRUBFtX4bb6c0BN7PrbaQOMTbgqt19TntPyELHQ3L0btvo51wV0siF/K6uvS3oK45XRYLqThYCjvoygehGRjd6WaNqvGForKZvj652sPjwmJFhpHYpCxyoZ4LaXcLTRQBQ4M4h1UwIbd0V9Hn0AiOR8+KIqMzwrbIFrtt2vN5RoUfoZkRK2OumcsvydVbliGndr5fz+hm08tTEuwpW6dUffogvsp72Dk6rIKoDckEBwZ6M10u4ECj+Op3byVyR5/a84BQQ/RzaDFB69J1wVZnWLuMxDT5WQTLzoTJzYsDm03/c8X+ojeWsGwn9XqxKIyoHhltra1lLmRSa3TavAQWj9Lol4qvqz4l/ftMo0wTrD75JwyRzK/llwO+U5XIStXIsaXtmxxfbRSdJt8pl24s8DWQQ9ugT6RLy6/1OsFrTwToybO4oeGYhmbwwo7bwheG92bA8uC1SDm6ICnh3VbVnzbgAaxtZ/gNk6yGtNKSN50flj45nhvT0BQyzg67PwZMYlLyeLUVuMSFDWjHI+mTeV5qRvn6pq2poZ0DFzJhZE1EJDWBvmS8o6ZH0=" steps: # - uses: jwalton/gh-find-current-pr@v1 # id: findPr From 85b30c636e4cd95701395da7b6aa7fdb44d9172b Mon Sep 17 00:00:00 2001 From: Jay Sucharitakul Date: Fri, 28 Jan 2022 13:41:05 -0800 Subject: [PATCH 4/4] Removed codacy coverage line --- .github/workflows/pull-request.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b4e40e8fe..e869d5c47 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -37,7 +37,6 @@ jobs: - run: sbt ++$SCALA_VERSION clean coverage test - run: sbt ++$SCALA_VERSION coverageReport - run: sbt ++$SCALA_VERSION coverageAggregate - - run: sbt ++$SCALA_VERSION codacyCoverage # - name: Cache multiple paths # uses: actions/cache@v2 # with: