-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from phuse-org/tidy
copy edits
- Loading branch information
Showing
16 changed files
with
198 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
comments: | ||
giscus: | ||
repo: phuse-og/devops | ||
category: General |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
pagetitle: Enhanced CICD workflows | ||
title: Enhanced CICD workflows | ||
subtitle: CICD workflows for power users | ||
search: false | ||
listing: | ||
contents: posts | ||
sort: "date desc" | ||
type: grid | ||
categories: true | ||
sort-ui: true | ||
filter-ui: true | ||
page-size: 12 | ||
comments: false | ||
--- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions
59
content/cicdworkflows-enhanced/posts/validate/validate.qmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
title: "theValidator" | ||
description: | | ||
This workflow will take your documentation, and link it to unit testing, creating a report that links requirements (documentation) to tests of those requirements. | ||
categories: | ||
- Testing | ||
- Documentation | ||
- Validation | ||
date: 2023-08-01 | ||
image: validate.jpg | ||
toc: true | ||
--- | ||
|
||
:::{.callout-note style="margin-top: 0rem;" collapse="false"} | ||
## About the gh-action | ||
|
||
**Example of use:** [admiral R package](https://github.com/insightsengineering/thevalidatoR/blob/main/readme_files/report-0.1-admiral.pdf) | ||
|
||
**Expected output:** A PDF attached to a release. | ||
::: | ||
|
||
## Why should I use this? | ||
|
||
As a codebase grows, it becomes more likely you will end up with a number of links in your documentation. | ||
These links can over time stop working - and often you won't know till a user flags your links or broken. | ||
|
||
This `gh-action` lets you stay on top of broken links, by actively scanning for them. | ||
|
||
## How do I set it up? | ||
|
||
Below is an example of using this `gh-action` whenever someone tries to make PR into your `main` or `devel` branch. | ||
|
||
|
||
```bash | ||
--- | ||
name: Docs 📚 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- devel | ||
pull_request: | ||
branches: | ||
- main | ||
- devel | ||
|
||
jobs: | ||
links: | ||
name: Links | ||
uses: pharmaverse/admiralci/.github/workflows/links.yml@main | ||
if: github.event_name == 'pull_request' | ||
``` | ||
|
||
## The deets | ||
|
||
This gh-action uses lychee. If you need to prevent false positive deadlinks stopping the | ||
process, you can use a `.lycheeignore` file. There is an example of this file [from | ||
admiral here](https://github.com/pharmaverse/admiral/blob/devel/.lycheeignore). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
comments: | ||
giscus: | ||
repo: realworlddatascience/realworlddatascience.github.io | ||
repo: phuse-og/devops | ||
category: General |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
comments: | ||
giscus: | ||
repo: realworlddatascience/realworlddatascience.github.io | ||
repo: phuse-og/devops | ||
category: General |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ listing: | |
- minutes | ||
- "!index.qmd" | ||
sort: "date desc" | ||
type: table | ||
type: default | ||
--- | ||
|
||
Meeting notes and minutes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
title-block-banner: true | ||
sidebar: false | ||
page-layout: article |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
pagetitle: Posts | PharmaDevOps | ||
title: Posts | ||
subtitle: "Ad-hoc notes and posts" | ||
search: true | ||
listing: | ||
contents: | ||
- posts | ||
- "!index.qmd" | ||
sort: "date desc" | ||
type: default | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
pagetitle: refs | ||
title: External references | ||
subtitle: "A list of useful external references" | ||
date: 2023-10-23 | ||
search: true | ||
--- | ||
|
||
* [gh-action documention from GitHub](https://docs.github.com/en/actions) | ||
* [Tidyverse post on CICD for R devs](https://www.tidyverse.org/blog/2022/06/actions-2-0-0/) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
pagetitle: ghactions | ||
title: The anatomy of a gh-action | ||
subtitle: "Understanding what makes a github action tick" | ||
date: 2023-10-23 | ||
search: true | ||
--- | ||
|
||
GitHub Actions are a powerful automation and CI/CD (Continuous Integration/Continuous Deployment) platform provided by GitHub. It allows you to automate various tasks and workflows in response to events that occur in your GitHub repositories. Actions are defined using `YAML` files that specify the workflow to be executed. The workflow file typically has a `.yml` extension. Below is an explanation of the key syntax elements in a GitHub Actions workflow file as an annotated example: | ||
|
||
```yaml | ||
# Name: You can specify a name for your workflow. | ||
# This is a human-readable description of the workflow | ||
# and is not required for the workflow to function. | ||
name: My CI/CD Workflow | ||
|
||
# on: This specifies the events that trigger the workflow. | ||
# You can set it to various events like pushes to a | ||
# repository, pull requests, or even a schedule. | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
# jobs: This is the main section of the workflow file. | ||
# It defines the jobs that are to be executed when | ||
# the workflow is triggered. | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest # Specifies the type of virtual | ||
# machine or runner on which the job will run. GitHub | ||
# provides various runners for different platforms, | ||
# including Windows, Linux, and macOS. | ||
steps: # Contains a list of steps that are executed | ||
# in the specified order. Steps are individual | ||
# tasks within a job. | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
``` |