Skip to content

Commit

Permalink
chore(ci): make the CI work on GitHub
Browse files Browse the repository at this point in the history
Get the GitHub CI working.

  * Use `vault.centos.org` for CentOS 7 and CentOS 8
  * Force use of node 16
  * Use `artifact@v3` [1]

1. https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/
  • Loading branch information
JohnVillalovos committed Oct 2, 2024
1 parent 3703fa3 commit 51c8c0f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Publish

# If a pull-request is pushed then cancel all previously running jobs related
# to that pull-request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

on:
push:
tags:
Expand Down
27 changes: 26 additions & 1 deletion .github/workflows/review-checks.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
name: Review-checks

# If a pull-request is pushed then cancel all previously running jobs related
# to that pull-request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

on: [pull_request]

jobs:
check-docs:
env:
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
runs-on: ubuntu-latest
container:
image: centos:7

steps:
- uses: actions/checkout@v1
- name: Fixup CentOS repo files
run: |
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
- name: Install utils
run: |
yum install -y git wget ca-certificates
Expand All @@ -23,7 +39,7 @@ jobs:
run: |
make -C documentation html SPHINXOPTS="-W"
mv documentation/_build/html /__w
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v3
with:
name: beaker-docs
path: /home/runner/work/html
Expand All @@ -34,6 +50,9 @@ jobs:
MYSQL_USER: beaker
MYSQL_PASSWORD: beaker
MYSQL_ROOT_PASSWORD: toor
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
strategy:
fail-fast: false
matrix:
Expand All @@ -51,6 +70,12 @@ jobs:
ports:
- 3306
steps:
- name: Fixup CentOS repo files
run: |
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
# We have to install git 2.18+ to perform checkout via git
# This is possible only via IUS repositories
- name: Install git to allow checkout
Expand Down

0 comments on commit 51c8c0f

Please sign in to comment.