From 1b59bfc58b321665fbb513fbc7a8fa799e5b3793 Mon Sep 17 00:00:00 2001 From: Alan Evans Date: Tue, 5 Oct 2021 09:48:42 +0100 Subject: [PATCH 1/5] DG-24864. Add github actions (untested). Needs coveralls token porting --- .github/workflows/github-actions.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/github-actions.yml diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml new file mode 100644 index 0000000..77a5d96 --- /dev/null +++ b/.github/workflows/github-actions.yml @@ -0,0 +1,12 @@ +name: GitHub Actions +on: [push] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [2.5, 2.6, 2.7] + steps: + - name: Run tests + run: bundle exec rake +# TODO: coveralls token From 064c9499092a111999f2bb45f3b7575cc8d2064c Mon Sep 17 00:00:00 2001 From: Alan Evans Date: Tue, 5 Oct 2021 10:00:06 +0100 Subject: [PATCH 2/5] DG-24864. update github actions --- .github/workflows/github-actions.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 77a5d96..b5916ce 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -1,12 +1,22 @@ name: GitHub Actions on: [push] jobs: - build: - runs-on: ubuntu-latest - strategy: + test: + + runs-on: ubuntu-latest + + strategy: matrix: - ruby: [2.5, 2.6, 2.7] - steps: - - name: Run tests - run: bundle exec rake + ruby-version: [2.7.x, 2.6.x, 2.5.x] + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6 + with: + ruby-version: ${{ matrix.ruby-version }} + - name: Install dependencies + run: bundle install + - name: Run tests + run: bundle exec rake # TODO: coveralls token From d8d3aa29dbd82158413b85d25579be1bd12c47d2 Mon Sep 17 00:00:00 2001 From: Alan Evans Date: Tue, 5 Oct 2021 10:02:56 +0100 Subject: [PATCH 3/5] DG-24864. Maybe fix ruby versions ... ? --- .github/workflows/github-actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index b5916ce..ca78d45 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: - ruby-version: [2.7.x, 2.6.x, 2.5.x] + ruby-version: [2.7, 2.6, 2.5] steps: - uses: actions/checkout@v2 From 97782ab280e0868b624cc2f9de738ec18b2ce0ad Mon Sep 17 00:00:00 2001 From: Alan Evans Date: Tue, 5 Oct 2021 12:10:52 +0100 Subject: [PATCH 4/5] DG-24864. Remove .travis.yml --- .travis.yml | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8f94b44..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: ruby -cache: bundler -sudo: false -rvm: -- 2.5 -- 2.6 -- 2.7 -env: - global: - secure: oTfTvwL0pPBMX4YTTVI+3W1Q/+uLkPl/0728smMpkB5TMfO3n2e5DXvdRlATOkoUSQkiHHdkVAn0qsqYra+CdyEJ5W0Xz0z8ueWelyhPV47WfyYE/LWb9NNa+2EgTjwMx4QWY6+JDAwZiKtd/r5JdVfTNeuEhbsAyWj9nIfeduUdB8ZKsV0AKCs/KSTYAnavtZrE6YKTWPL9uoxUKgX/D9UU6Tpi8loQLj9I96ziLEQl39J/pySK8egsp4dOhNXSDGD+PvFoxE5pLob3ILEzoYdy7Sw3JiUDQBoMZNmkX4Oi6Mg0C2/NySmu3wp9UMPDPr7XbkmZ+xVmsvFYCCPF8BzPWZgDBqGOY2S/qNuKXEbkMiSMgRRobYYFPZbMXhLNa6J1iY/lOiHoSPJyUcY1FnmlxJltWD297HfST1NSfkHYjymM4EsFHGFJHBbXXmuUo9rioU32GZbz65+oinSXC5VSBxFuD2d4E3AxpD6lxpx0sWvqn0St9nYantgm5jnHoVsXux1C5tBKkHUZ4famLKqnPiTmFWC82Jgueg0doT0vNgLahZEOzKItPe0RWviS+ntVyaKtIYWKJAaCgtDFTOWX/SYfnP8cTHEg3+bdfBTYWc1mXm9UHvwHpqrwXQeHB/+6hbaC8nvE5lzjxpYKDjndiBsxTGil4g3QIyZv3BE= From 416a0db1b80f604ad1772343e5536a6cf2400127 Mon Sep 17 00:00:00 2001 From: Alan Evans Date: Thu, 14 Oct 2021 14:42:45 +0100 Subject: [PATCH 5/5] DG-24864. Try coveralls token secret. --- .github/workflows/github-actions.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index ca78d45..7a693a9 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -18,5 +18,6 @@ jobs: - name: Install dependencies run: bundle install - name: Run tests + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run: bundle exec rake -# TODO: coveralls token