Skip to content

Commit cf84b8d

Browse files
DZverevccarro30
andauthored
feat: update github actions (#191)
* feat: update github actions * CI Revamp WIP * Fix test and lint * Add back coverage reporting * Update branding * Remove old stuff --------- Co-authored-by: ccarro30 <chris.carroll@tkxs.com>
1 parent 2564fee commit cf84b8d

19 files changed

+131
-149
lines changed

.github/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Contributing to nib
22

3-
nib is work of [several contributors](https://github.com/technekes/nib/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/technekes/nib/pulls), [propose features and discuss issues](https://github.com/technekes/nib/issues).
3+
nib is work of [several contributors](https://github.com/telus-agcg/nib/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/telus-agcg/nib/pulls), [propose features and discuss issues](https://github.com/telus-agcg/nib/issues).
44

55
#### Fork the Project
66

7-
Fork the [project on Github](https://github.com/technekes/nib) and check out your copy.
7+
Fork the [project on Github](https://github.com/telus-agcg/nib) and check out your copy.
88

99
```
1010
git clone https://github.com/contributor/nib.git
1111
cd nib
12-
git remote add upstream https://github.com/technekes/nib.git
12+
git remote add upstream https://github.com/telus-agcg/nib.git
1313
```
1414

1515
#### Create a Topic Branch
@@ -59,7 +59,7 @@ git push origin my-feature-branch
5959

6060
#### Make a Pull Request
6161

62-
Go to https://github.com/technekes/nib/compare and select your feature branch. Click the 'Create pull request' button and fill out the form. Pull requests are usually reviewed within a few days.
62+
Go to https://github.com/telus-agcg/nib/compare and select your feature branch. Click the 'Create pull request' button and fill out the form. Pull requests are usually reviewed within a few days.
6363

6464
#### Rebase
6565

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,3 @@ updates:
99
commit-message:
1010
prefix: "build:"
1111
open-pull-requests-limit: 6
12-
reviewers:
13-
- johnallen3d
14-
assignees:
15-
- johnallen3d

.github/workflows/codeql.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: "CodeQL Workflow"
1+
name: CodeQL Workflow
22

33
on:
44
pull_request:
5-
branches: [ "master" ]
5+
branches: ["master"]
6+
push:
7+
branches: ["master"]
68
schedule:
79
- cron: "0 16 * * *"
810

@@ -18,16 +20,16 @@ jobs:
1820
strategy:
1921
fail-fast: false
2022
matrix:
21-
language: [ 'ruby' ]
23+
language: ["ruby"]
2224

2325
steps:
24-
- name: Checkout Code
25-
uses: actions/checkout@v3
26+
- name: Checkout Code
27+
uses: actions/checkout@v4
2628

27-
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@v2
29-
with:
30-
languages: ${{ matrix.language }}
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v3
31+
with:
32+
languages: ${{ matrix.language }}
3133

32-
- name: Run CodeQL Scan
33-
uses: github/codeql-action/analyze@v2
34+
- name: Run CodeQL Scan
35+
uses: github/codeql-action/analyze@v3

.github/workflows/commitlint.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/danger.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@ name: PR Checks
22

33
on:
44
pull_request:
5-
branches:
6-
- master
5+
branches: ["master"]
76

87
jobs:
98
danger:
9+
name: Danger
1010
runs-on: ubuntu-latest
11-
if: github.event_name == 'pull_request'
1211
steps:
13-
- uses: actions/checkout@v2
14-
with:
15-
fetch-depth: 10
12+
- name: Checkout Code
13+
uses: actions/checkout@v4
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.5.15
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.5.15
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/gem_workflow.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Gem Workflow
2+
3+
on:
4+
pull_request:
5+
branches: ["master"]
6+
push:
7+
branches: ["master"]
8+
9+
jobs:
10+
gem:
11+
name: Build Gem
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
steps:
18+
- name: Checkout Code
19+
uses: actions/checkout@v4
20+
21+
- name: Build Docker Image
22+
run: |
23+
docker compose build --pull
24+
25+
- name: Run Tests
26+
run: |
27+
docker compose run test
28+
29+
- name: Run Linting
30+
run: |
31+
docker compose run lint
32+
33+
- name: Upload Code Coverage Artifact
34+
if: ${{ github.event_name == 'pull_request' }}
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: code-coverage-report
38+
path: ./coverage
39+
40+
- name: Publish Code Coverage Results
41+
if: ${{ github.event_name == 'pull_request' }}
42+
uses: aki77/simplecov-report-action@v1
43+
with:
44+
token: ${{ secrets.GITHUB_TOKEN }}
45+
failedThreshold: 93
46+
47+
- name: Deploy Gem
48+
if: ${{ github.event_name == 'push' }}
49+
run: |
50+
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} docker compose run deploy

.github/workflows/lint_and_test.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Next Release
22

3+
# 2.1.2 (2025-01-23)
4+
5+
## Maintenance
6+
7+
* [190](https://github.com/technekes/nib/pull/190) Fix vulnerabilities.
8+
* [191](https://github.com/technekes/nib/pull/191) Update github workflows.
9+
310
# 2.1.1 (2022-02-09)
411

512
* [169](https://github.com/technekes/nib/pull/169) Handle varied Psych load API's - [@johnallen3d](https://github.com/johnallen3d).

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ruby:3.3.0
2+
23
WORKDIR /usr/src/app
34

45
COPY . .
56

6-
RUN \
7-
bundle install -j4
7+
RUN bundle install -j5

0 commit comments

Comments
 (0)