Skip to content

Skip private repo test in Dependabot PRs #65

Skip private repo test in Dependabot PRs

Skip private repo test in Dependabot PRs #65

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"
cache-dependency-path: yarn.lock
- run: yarn
- run: yarn test
integration:
strategy:
matrix:
runner:
- ubuntu-latest
- macOS-latest
- windows-latest
fail-fast: false
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
name: 'hlint'
version: '3.5'
url: 'https://github.com/ndmitchell/{name}/releases/download/v{version}/{name}-{version}-{arch}-{os}.{ext}'
subdir: '{name}-{version}'
os-darwin: osx
os-win32: windows
arch: x86_64
- run: hlint --version
- uses: ./
with:
name: dms
version: latest
url: "https://releases.deadmanssnitch.com/field-agent/{version}/{name}_{os}_{arch}.{ext}"
os-darwin: macos
os-win32: windows
arch: amd64
- run: dms --version
- uses: ./
with:
name: pandoc
version: 2.19.2
url: 'https://github.com/jgm/{name}/releases/download/{version}/{name}-{version}-{os}-{arch}.{ext}'
url-darwin: 'https://github.com/jgm/{name}/releases/download/{version}/{name}-{version}-macOS.zip'
subdir: '{name}-{version}/bin'
subdir-win32: '{name}-{version}'
os-win32: windows
arch: x86_64
arch-linux: amd64
- run: pandoc --version
- if: ${{ matrix.runner == 'ubuntu-latest' }}
uses: ./
with:
name: bluebook
version: 1.0.0.0
url: 'https://github.com/pbrisbin/{name}/releases/download/v{version}/{name}-{os}-{arch}'
no-extract: "true"
- if: ${{ matrix.runner == 'ubuntu-latest' }}
run: bluebook --help
#
# Random example from Freckle, that's a private repo. TODO: skip in
# forks.
#
- if: ${{ matrix.runner == 'ubuntu-latest' && github.actor != 'dependabot[bot]' }}
uses: ./
with:
name: platform
version: 2.4.0.2
url: 'https://github.com/freckle/{name}/releases/download/v{version}/{name}-{arch}-{os}.{ext}'
github-token: ${{ secrets.PLATFORM_GITHUB_TOKEN }}
arch: x86_64
subdir: '{name}'
- if: ${{ matrix.runner == 'ubuntu-latest' && github.actor != 'dependabot[bot]' }}
run: platform version