Bump rubocop from 1.67.0 to 1.68.0 #314
Workflow file for this run
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: Build and Test | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
paths: | |
- Dockerfile | |
- Gemfile | |
- Gemfile.lock | |
- entrypoint.sh | |
- test/** | |
- .github/workflows/ci.yml | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: heromo/pronto-action | |
jobs: | |
test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build Image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./Dockerfile | |
load: true | |
push: false | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest | |
- name: Modify action.yaml | |
run: yq '.runs.image = "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest"' -i action.yaml | |
- name: Prepare Tests | |
run: | | |
cp -rf ./test ./test-tmp | |
git config --global user.email "[email protected]" | |
git config --global user.name "Tester" | |
git add -f ./test-tmp | |
git commit -m 'for test' | |
- name: Test Local Action | |
uses: ./ | |
with: | |
runner: rubocop | |
path: ./test-tmp/ | |
formatters: text |