Skip to content

Commit

Permalink
Update ci workflow actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaeftekhar committed Aug 7, 2023
1 parent bb6cc96 commit 0c6353b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/ci_ratonvirus.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
name: "[CI] Ratonvirus"
on: [push, pull_request]
on:
push:
branches:
- develop
- main
- release/*
pull_request:

env:
CODECOV: "true"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: rokroskar/workflow-run-cleanup-action@v0.3.0
if: "github.ref != 'refs/heads/master'"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v2.0.0
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
Expand All @@ -24,4 +30,4 @@ jobs:
run: bundle install --jobs 4 --retry 3
- name: RSpec
run: bundle exec rspec
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v3
18 changes: 12 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
name: "[CI] Lint"
on: [push, pull_request]
on:
push:
branches:
- develop
- main
- release/*
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
name: Rubocop
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: rokroskar/workflow-run-cleanup-action@v0.3.0
if: "github.ref != 'refs/heads/master'"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v2.0.0
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit 0c6353b

Please sign in to comment.