Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Merge pull request #25 from Antiz96/codespell
Browse files Browse the repository at this point in the history
Add codespell to the test suite GH action
  • Loading branch information
Antiz96 authored Jun 24, 2023
2 parents 5cf2004 + 7bdf14a commit 5ff04fe
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/shellcheck.yml → .github/workflows/test.yml
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

0 comments on commit 5ff04fe

Please sign in to comment.