Skip to content

Commit

Permalink
chore: update dotnet action
Browse files Browse the repository at this point in the history
  • Loading branch information
dtopuzov committed Dec 14, 2024
1 parent 6ccbdfa commit 56e94c4
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 55 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ name: .NET

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- uses: actions/checkout@v4

- name: Run Tests
working-directory: ./dotnet
env:
GITHUB_USER: ${{ secrets.TEST_GITHUB_USER }}
GITHUB_REPO: ${{ secrets.TEST_GITHUB_REPO }}
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
run: dotnet test
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.x"

- name: Run Tests
working-directory: ./dotnet
env:
GITHUB_USER: ${{ secrets.TEST_GITHUB_USER }}
GITHUB_REPO: ${{ secrets.TEST_GITHUB_REPO }}
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
run: dotnet test
42 changes: 21 additions & 21 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@ name: Java

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup NodeJS
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/checkout@v3

- name: Lint
working-directory: ./java/github-tests
run: |
./gradlew clean checkstyleMain
./gradlew clean checkstyleTest
- name: Setup NodeJS
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"

- name: Run Tests
working-directory: ./java/github-tests
env:
GITHUB_USER: ${{ secrets.TEST_GITHUB_USER }}
GITHUB_REPO: ${{ secrets.TEST_GITHUB_REPO }}
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
run: ./gradlew clean test
- name: Lint
working-directory: ./java/github-tests
run: |
./gradlew clean checkstyleMain
./gradlew clean checkstyleTest
- name: Run Tests
working-directory: ./java/github-tests
env:
GITHUB_USER: ${{ secrets.TEST_GITHUB_USER }}
GITHUB_REPO: ${{ secrets.TEST_GITHUB_REPO }}
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
run: ./gradlew clean test
38 changes: 19 additions & 19 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@ name: NodeJS

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/checkout@v4

- name: Install Dependencies
working-directory: ./typescript
run: npm ci
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 22

- name: Run Tests
working-directory: ./typescript
env:
GITHUB_USER: ${{ secrets.TEST_GITHUB_USER }}
GITHUB_REPO: ${{ secrets.TEST_GITHUB_REPO }}
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
HEADLESS: true
run: npm run test
- name: Install Dependencies
working-directory: ./typescript
run: npm ci

- name: Run Tests
working-directory: ./typescript
env:
GITHUB_USER: ${{ secrets.TEST_GITHUB_USER }}
GITHUB_REPO: ${{ secrets.TEST_GITHUB_REPO }}
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
HEADLESS: true
run: npm run test

0 comments on commit 56e94c4

Please sign in to comment.