-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit features several CI improvements: - Clearer naming of CI files, pipelines, and jobs. - Adds "website-test.yml" to test website changes on PRs. - Removes duplicative tests on `main` after equivalent tests on PRs, given that PRs can only merge with passing tests. Signed-off-by: Andrew Lilley Brinker <[email protected]>
- Loading branch information
1 parent
bff7e6d
commit 2573775
Showing
5 changed files
with
60 additions
and
22 deletions.
There are no files selected for viewing
10 changes: 2 additions & 8 deletions
10
.github/workflows/conventional-commits.yml → .github/workflows/commits.yml
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
11 changes: 3 additions & 8 deletions
11
.github/workflows/test.yml → .github/workflows/hipcheck.yml
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Website | ||
|
||
# Run when PRs would modify the site code. | ||
on: | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "site/**" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
#========================================================================== | ||
# Build the Hipcheck site with Zola and the Tailwindcss CLI | ||
#-------------------------------------------------------------------------- | ||
website-test: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
TAILWIND_VERSION: 3.4.4 | ||
|
||
steps: | ||
# Check out the Hipcheck repository. | ||
- name: Checkout Hipcheck Repository | ||
uses: actions/checkout@v4 | ||
|
||
# Install the latest version of Zola. | ||
- name: Install Zola | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
# Install the latest version of the Tailwind CLI. | ||
- name: Install Tailwind CLI | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSLO https://github.com/tailwindlabs/tailwindcss/releases/download/v${TAILWIND_VERSION}/tailwindcss-linux-x64 | ||
chmod +x tailwindcss-linux-x64 | ||
mv tailwindcss-linux-x64 tailwindcss | ||
mkdir -p "${HOME}/.local/bin" | ||
mv tailwindcss "${HOME}/.local/bin/tailwindcss" | ||
echo "${HOME}/.local/bin" >> $GITHUB_PATH | ||
# Build the actual site with Zola and Tailwind. | ||
- name: Build Hipcheck Website | ||
run: | | ||
cd site | ||
zola build | ||
tailwindcss -i styles/main.css -o public/main.css |