Skip to content

Bump codecov/codecov-action from 3 to 4 #2954

Bump codecov/codecov-action from 3 to 4

Bump codecov/codecov-action from 3 to 4 #2954

Workflow file for this run

name: Build
on:
push:
branches: '*'
pull_request:
branches: [ master ]
jobs:
Test_and_Deploy:
name: Test and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn clean package -f WakeOnLanHTTPRest -Dgpg.skip
- name: Push Coverage
uses: codecov/codecov-action@v4
with:
directory: ./WakeOnLanHTTPRest/
- name: Release Snapshot
run:
mkdir -p ~/.m2;
echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.OSSRH_USERNAME }}</username><password>${{ secrets.OSSRH_TOKEN }}</password></server></servers></settings>" > ~/.m2/settings.xml;
mvn clean deploy -f WakeOnLanHTTPRest -Dgpg.skip
Analyze_Code:
name: Analyze Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -f WakeOnLanHTTPRest -Dgpg.skip