Skip to content

chore: drop ubuntu-latest from test matrices in favor of ubuntu-slim #3

chore: drop ubuntu-latest from test matrices in favor of ubuntu-slim

chore: drop ubuntu-latest from test matrices in favor of ubuntu-slim #3

---
name: Test create-pull-request
on:
workflow_call: ~
pull_request:
paths:
- create-pull-request/**
- .github/workflows/test-create-pull-request.yml
push:
branches:
- main
paths:
- create-pull-request/**
- .github/workflows/test-create-pull-request.yml
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-slim
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: src
# A clean checkout of the default branch has no changes, so no branch is pushed and no pull request is opened.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.repository.default_branch }}
path: repo
- name: Run action
id: cpr
uses: ./src/create-pull-request
with:
path: repo
branch: test-create-pull-request/${{ github.run_id }}-${{ matrix.os }}
- name: Verify no-op
shell: bash
env:
OPERATION: ${{ steps.cpr.outputs.pull-request-operation }}
run: |
[ "$OPERATION" = "none" ]