Skip to content

Commit

Permalink
bat test added and CI Pipeline control improved
Browse files Browse the repository at this point in the history
  • Loading branch information
KaganCanSit committed Jun 17, 2024
1 parent fd2979a commit 9c0e7c4
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 27 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/CIPipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI Pipeline

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
shellcheck:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run ShellCheck on linkChecker.sh
run: |
shellcheck -s bash ./linkChecker.sh
continue-on-error: false

- name: Run ShellCheck on Bats test file
run: |
shellcheck -s bash ./tests/linkchecker.bats
continue-on-error: false

- name: Run ShellCheck on test_helper.bash
run: |
shellcheck -s bash ./tests/test_helper.bash
continue-on-error: false

bats-test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Bats
run: |
sudo apt-get update
sudo apt-get install -y bats
- name: Run Bats Tests
run: bats tests/
continue-on-error: false
27 changes: 0 additions & 27 deletions .github/workflows/shellcheck.yml

This file was deleted.

0 comments on commit 9c0e7c4

Please sign in to comment.