Skip to content

chore: bump docker/setup-buildx-action from 3 to 4 #12

chore: bump docker/setup-buildx-action from 3 to 4

chore: bump docker/setup-buildx-action from 3 to 4 #12

Workflow file for this run

name: Test Action
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
- name: Ruby syntax check
run: ruby -c src/check_coverage.rb
test-action:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Create test SimpleCov file
run: |
mkdir -p coverage
cat > coverage/.resultset.json << 'EOL'
{
"RSpec": {
"coverage": {
"/app/models/user.rb": {
"lines": [1, 1, null, 1, 1, null, 1, 0, null, null, 1, 1, null, null, 1, 0, null, null]
},
"/app/models/post.rb": {
"lines": [1, 1, 1, 1, null, 1, 0, null, null]
}
}
}
}
EOL
# Test the action with itself
- name: Test action with itself
uses: ./
with:
minimum_suite_coverage: 80
minimum_file_coverage: 70
debug_mode: true