31 lines
935 B
YAML
31 lines
935 B
YAML
name: Build & Test
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
push:
|
|
branches:
|
|
- main
|
|
- releases/*
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
call-basic-validation: # The reusable workflow can be found here: https://github.com/actions/reusable-workflows/blob/main/.github/workflows/basic-validation.yml
|
|
name: Basic validation
|
|
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
|
|
|
|
dry-run-test: # make sure the action works on a clean machine without building
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: ./
|
|
id: stale
|
|
with:
|
|
stale-issue-message: 'This issue is stale'
|
|
stale-pr-message: 'This PR is stale'
|
|
debug-only: true
|
|
- name: Print outputs
|
|
run: echo ${{ format('{0},{1}', toJSON(steps.stale.outputs.staled-issues-prs), toJSON(steps.stale.outputs.closed-issues-prs)) }}
|