Skip to content

Commit 881d091

Browse files
author
Tom Zmyslo
committed
fixup! fixup! Adds codeql.yml workflow
1 parent cc21ded commit 881d091

File tree

3 files changed

+51
-51
lines changed

3 files changed

+51
-51
lines changed

.github/workflows/commitlint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ name: Lint Commit Messages
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
pull_request:
88
branches:
9-
- master
9+
- master
1010

1111
jobs:
1212
commitlint:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
1818
- uses: wagoid/commitlint-github-action@v4

.github/workflows/danger.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: github.event_name == 'pull_request'
1212
steps:
13-
- uses: actions/checkout@v2
14-
with:
15-
fetch-depth: 10
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 10
1616

17-
- uses: ruby/setup-ruby@v1
18-
with:
19-
ruby-version: 3.1
20-
bundler-cache: true
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: 3.1
20+
bundler-cache: true
2121

22-
- name: Run Danger checks
23-
uses: MeilCli/danger-action@v5
24-
with:
25-
install_path: 'vendor/bundle'
26-
danger_file: 'Dangerfile'
27-
danger_id: 'danger-pr'
28-
env:
29-
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Run Danger checks
23+
uses: MeilCli/danger-action@v5
24+
with:
25+
install_path: 'vendor/bundle'
26+
danger_file: 'Dangerfile'
27+
danger_id: 'danger-pr'
28+
env:
29+
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint_and_test.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Lint and Test
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
pull_request:
88
branches:
9-
- master
9+
- master
1010

1111
jobs:
1212
build-lint-test:
@@ -18,34 +18,34 @@ jobs:
1818
ruby: ['2.7', '3.0', '3.1']
1919

2020
steps:
21-
- uses: actions/checkout@v2
22-
23-
- name: Set Ruby Version
24-
run: sed -i 's/:3.1-alpine/:${{ matrix.ruby }}-alpine/' Dockerfile
25-
26-
- name: Build
27-
run: docker-compose -p ci build --pull
28-
env:
29-
COMPOSE_DOCKER_CLI_BUILD: 1
30-
DOCKER_BUILDKIT: 1
31-
32-
- name: Test
33-
run: docker-compose -p ci run --name=test gem rake rspec:unit
34-
35-
- name: Lint
36-
if: matrix.ruby == '3.1'
37-
run: docker-compose -p ci run --name=lint gem rubocop .
38-
39-
- name: Archive code coverage results
40-
if: matrix.ruby == '3.1'
41-
uses: actions/upload-artifact@v2
42-
with:
43-
name: code-coverage-report
44-
path: ./coverage
45-
46-
- name: Report on coverage
47-
if: matrix.ruby == '3.1'
48-
uses: aki77/simplecov-report-action@v1
49-
with:
50-
token: ${{ secrets.GITHUB_TOKEN }}
51-
failedThreshold: 93
21+
- uses: actions/checkout@v3
22+
23+
- name: Set Ruby Version
24+
run: sed -i 's/:3.1-alpine/:${{ matrix.ruby }}-alpine/' Dockerfile
25+
26+
- name: Build
27+
run: docker-compose -p ci build --pull
28+
env:
29+
COMPOSE_DOCKER_CLI_BUILD: 1
30+
DOCKER_BUILDKIT: 1
31+
32+
- name: Test
33+
run: docker-compose -p ci run --name=test gem rake rspec:unit
34+
35+
- name: Lint
36+
if: matrix.ruby == '3.1'
37+
run: docker-compose -p ci run --name=lint gem rubocop .
38+
39+
- name: Archive code coverage results
40+
if: matrix.ruby == '3.1'
41+
uses: actions/upload-artifact@v2
42+
with:
43+
name: code-coverage-report
44+
path: ./coverage
45+
46+
- name: Report on coverage
47+
if: matrix.ruby == '3.1'
48+
uses: aki77/simplecov-report-action@v1
49+
with:
50+
token: ${{ secrets.GITHUB_TOKEN }}
51+
failedThreshold: 93

0 commit comments

Comments
 (0)