Skip to content

blacksmith.sh: Migrate workflows to Blacksmith #745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:

jobs:
drupal_codequality:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand All @@ -34,7 +34,7 @@ jobs:
- twigcs

frontend_codequality:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2204
container: node:20
steps:
- name: Check out repository code
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Get Cache Directories
id: cache-dir
run: echo "npm-dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
- uses: useblacksmith/cache@v5
with:
path: |
**/node_modules
Expand All @@ -59,7 +59,7 @@ jobs:
npm run lint

drupal_test:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
pull-requests: write
contents: read
Expand All @@ -76,7 +76,7 @@ jobs:
run: |
echo "composer-dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
echo "npm-dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
- uses: useblacksmith/cache@v5
with:
path: |
vendor
Expand All @@ -88,7 +88,7 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: actions/cache@v4
- uses: useblacksmith/cache@v5
with:
path: |
**/node_modules
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
needs:
- drupal_codequality
- drupal_test
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2204
# Dependabot PR's can't access secrets, so we can't deploy.
if: github.actor != 'dependabot[bot]'
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
cypress_tests:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204

env:
CYPRESS_ADMIN_USERNAME: ct-admin
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/vr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
jobs:

vr_test:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
env:
# For Cypress.
CYPRESS_ADMIN_USERNAME: ct-admin
Expand All @@ -31,7 +31,7 @@ jobs:
run: |
echo "composer-dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
echo "npm-dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
- uses: useblacksmith/cache@v5
with:
path: |
vendor
Expand All @@ -43,7 +43,7 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: actions/cache@v4
- uses: useblacksmith/cache@v5
with:
path: |
**/node_modules
Expand Down
Loading