Merge pull request #104 from hhatto/add-reason #213
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
name: docker | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Unshallow | |
run: git fetch --prune --unshallow | |
- name: Lint Dockerfile | |
run: docker run --rm -i hadolint/hadolint < Dockerfile | |
- name: Build Docker Container | |
run: docker build -t gocloc . | |
- name: Test Container | |
run: docker run -v ${PWD}:/workdir gocloc . |