This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #25 from Antiz96/codespell
Add codespell to the test suite GH action
- Loading branch information
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
15 changes: 9 additions & 6 deletions
15
.github/workflows/shellcheck.yml → .github/workflows/test.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
name: Shellcheck | ||
name: Test suite | ||
on: pull_request | ||
|
||
env: | ||
REPO_NAME: ${{ github.event.repository.name }} | ||
|
||
jobs: | ||
run_shellcheck: | ||
test_suite: | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: docker.io/library/alpine:latest | ||
options: --privileged | ||
|
||
steps: | ||
- name: Update the container | ||
- name: Update container | ||
run: apk update && apk upgrade | ||
|
||
- name: Install shellcheck & git | ||
run: apk add shellcheck git | ||
- name: Install packages | ||
run: apk add git shellcheck py3-pip && pip install codespell | ||
|
||
- name: Clone the repo, `cd` into it and switch on current branch | ||
- name: Clone repo | ||
run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY && cd $REPO_NAME && git checkout $GITHUB_HEAD_REF | ||
|
||
- name: Run shellcheck | ||
run: find . -name '*.sh' -exec shellcheck --color=always {} + | ||
|
||
- name: Run codespell | ||
run: codespell |