From 1c9056e60901811ab98724ed26c7d62358a40664 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Fri, 14 Apr 2023 08:41:28 +0000 Subject: [PATCH 1/5] Use Single job starter workflow --- .semaphore/semaphore.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .semaphore/semaphore.yml diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml new file mode 100644 index 0000000..27b5115 --- /dev/null +++ b/.semaphore/semaphore.yml @@ -0,0 +1,13 @@ +version: v1.0 +name: Initial Pipeline +agent: + machine: + type: e1-standard-2 + os_image: ubuntu2004 +blocks: + - name: 'Block #1' + task: + jobs: + - name: 'Job #1' + commands: + - checkout From f06155b701dc09dd37ca4b043b74bd1c6c30438c Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Fri, 14 Apr 2023 11:50:49 +0300 Subject: [PATCH 2/5] add coveralls --- .semaphore/semaphore.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 27b5115..cc96328 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -5,9 +5,15 @@ agent: type: e1-standard-2 os_image: ubuntu2004 blocks: - - name: 'Block #1' + - name: 'Tests' task: + prologue: + commands: + - sem-version ruby 2.7 -f jobs: - - name: 'Job #1' + - name: 'RSpec' commands: - checkout + - bundle install --jobs 4 --retry 3 --no-cache + - bundle exec rspec + - curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls From 03e65acb64fde5df6ec1d9d7e6722ffa7162a3b6 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Fri, 14 Apr 2023 08:55:37 +0000 Subject: [PATCH 3/5] Update Semaphore configuration --- .semaphore/semaphore.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index cc96328..89452f9 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -5,15 +5,17 @@ agent: type: e1-standard-2 os_image: ubuntu2004 blocks: - - name: 'Tests' + - name: Tests task: prologue: commands: - sem-version ruby 2.7 -f jobs: - - name: 'RSpec' + - name: RSpec commands: - checkout - bundle install --jobs 4 --retry 3 --no-cache - bundle exec rspec - - curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls + - 'curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls' + secrets: + - name: sentry-sanitizer From 4c3eeece69f9516221e07e33e481be0236bcbf45 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Fri, 14 Apr 2023 11:57:32 +0300 Subject: [PATCH 4/5] fix: parallel flow --- .semaphore/semaphore.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 89452f9..ef0c251 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -16,6 +16,7 @@ blocks: - checkout - bundle install --jobs 4 --retry 3 --no-cache - bundle exec rspec - - 'curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls' + - 'curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls --parallel --job-flag rspec' + - ./coveralls --done secrets: - name: sentry-sanitizer From 68661362b38c32247dbd52d423f23926831c02c9 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Fri, 14 Apr 2023 12:04:22 +0300 Subject: [PATCH 5/5] test: remove coverage report on Github --- .github/workflows/ci.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4acf0b6..69fb5f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,22 +31,22 @@ jobs: bundle install --jobs 4 --retry 3 --no-cache bundle exec rspec - - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - flag-name: ruby-${{ matrix.ruby_version }} - path-to-lcov: ./coverage/lcov/sentry-sanitizer.lcov - parallel: true + # - uses: coverallsapp/github-action@master + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} + # flag-name: ruby-${{ matrix.ruby_version }} + # path-to-lcov: ./coverage/lcov/sentry-sanitizer.lcov + # parallel: true - coverage: - needs: rspec - name: Unit tests - if: ${{ always() }} - runs-on: ubuntu-latest - steps: - - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - carryforward: "ruby-2.5,ruby-2.7,ruby-3.0,ruby-3.1,ruby-jruby" - parallel-finished: true + # coverage: + # needs: rspec + # name: Unit tests + # if: ${{ always() }} + # runs-on: ubuntu-latest + # steps: + # - uses: coverallsapp/github-action@master + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} + # carryforward: "ruby-2.5,ruby-2.7,ruby-3.0,ruby-3.1,ruby-jruby" + # parallel-finished: true