Skip to content

chore: update readme with pin sha in readme #158

chore: update readme with pin sha in readme

chore: update readme with pin sha in readme #158

Workflow file for this run

name: "build"
on: [push, pull_request]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout BATS
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: bats-core/bats-core
ref: v1.11.0
- name: Setup BATS
run: |
sudo ./install.sh /usr/local
- name: Check out code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Run tests
run: bats test
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 18
- run: npm ci
- name: Install Hadolint
run: |
wget -O hadolint https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64
echo "56de6d5e5ec427e17b74fa48d51271c7fc0d61244bf5c90e828aab8362d55010 hadolint" | sha256sum --check
sudo mv hadolint /usr/local/bin/hadolint
sudo chmod +x /usr/local/bin/hadolint
- name: Run Hadolint
run: |
hadolint Dockerfile
- name: Check if README is up-to-date
run: |
npm run docs
git status
git diff --quiet || echo 'README is not up-to-date, run `npm install && npm run docs` to update.'
git diff --quiet || exit 1