podman-desktop/.github/workflows/codecov-next.yaml
Evžen Gasta 2b83c13578
feat: bumped up to node 24 and electron 40 (#15119)
Signed-off-by: Evzen Gasta <evzen.ml@seznam.cz>
2025-12-23 09:32:13 +00:00

57 lines
1.6 KiB
YAML

#
# Copyright (C) 2025 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: Publish codecov report from main branch
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: read
jobs:
codecov:
name: Run tests and push coverage result
runs-on: ubuntu-24.04
# disable on forks as secrets are not available
if: github.event.repository.fork == false
timeout-minutes: 60
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
name: Install pnpm
with:
run_install: false
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 24
cache: 'pnpm'
- name: Execute pnpm
run: pnpm install
- name: Run unit tests
run: pnpm test:unit:coverage
- name: publish codecov report
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
token: ${{ secrets.CODECOV_TOKEN }}