Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/check_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: check_action
on:
push:
paths:
- action.yml
pull_request:
paths:
- action.yml

jobs:
test_action:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4

- name: check gitdeps action on ${{ matrix.os }}
uses: ./
7 changes: 4 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
gitdeps_args:
description: 'add gitdeps arguments'
required: false
default: ''

runs:
using: 'composite'
steps:
Expand All @@ -32,7 +32,6 @@ runs:
shell: bash
if: runner.os == 'macOS'
run: |
set -e
VERSION="${{ inputs.gitdeps_ver }}"
OS_ARCH=$(uname -m | sed 's/aarch64/arm64/' | sed 's/x86_64/amd64/')
BASE_NAME="gitdeps_${VERSION}_darwin_${OS_ARCH}"
Expand Down Expand Up @@ -98,7 +97,9 @@ runs:
- name: run gitdeps (Unix)
shell: bash
if: runner.os != 'Windows'
run: .gitdeps/${BASE_NAME}/gitdeps ${{ inputs.gitdeps_args }}
env:
GITDEPS_ARGS: ${{ inputs.gitdeps_args }}
run: .gitdeps/${BASE_NAME}/gitdeps $GITDEPS_ARGS

- name: run gitdeps (Windows)
shell: pwsh
Expand Down