diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 7ca1b43..7fce841 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -1,38 +1,26 @@ -name: Daily Test +name: Test Action on: - schedule: - - cron: '13 13 * * *' + push: + branches: [main, feat/node24] + pull_request: workflow_dispatch: jobs: test: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: matrix: - os: - - 'ubuntu-20.04' - - 'ubuntu-latest' - - 'macos-latest' - - 'windows-latest' - hugo-version: - - 'latest' - - '0.61.0' - extended: - - true - - false + hugo-version: ['latest', '0.160.1'] + extended: [true, false] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup Hugo - uses: peaceiris/actions-hugo@v3.0.0 + uses: ./ with: hugo-version: ${{ matrix.hugo-version }} extended: ${{ matrix.extended }} - - name: Run hugo version - run: echo "::set-output name=hugo_version::$(hugo version)" - id: hugo_version - - - name: '${{ steps.hugo_version.outputs.hugo_version }}' - run: echo '${{ steps.hugo_version.outputs.hugo_version }}' + - name: Verify Hugo + run: hugo version diff --git a/action.yml b/action.yml index 8dcf0cb..ec49924 100644 --- a/action.yml +++ b/action.yml @@ -11,7 +11,7 @@ inputs: required: false default: 'false' runs: - using: 'node20' + using: 'node24' main: 'lib/index.js' branding: icon: 'package'