Skip to content

Commit

Permalink
test: reflactor env define
Browse files Browse the repository at this point in the history
  • Loading branch information
luohoufu committed Jan 10, 2025
1 parent 0d3c542 commit d051c81
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ defaults:
run:
shell: bash

env:
GO_VERSION: 1.23.4
PNAME: agent

jobs:
unit_test:
runs-on: ubuntu-latest
env:
GO_VERSION: 1.23.4
steps:
- name: Checkout current repository
uses: actions/checkout@v4
with:
fetch-depth: 0
path: agent
path: ${{ env.PNAME }}

- name: Checkout framework repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -51,7 +53,7 @@ jobs:
run: |
echo Home path is $HOME
export WORKBASE=$HOME/go/src/infini.sh
export WORK=$WORKBASE/agent
export WORK=$WORKBASE/$PNAME
# for test workspace
mkdir -p $HOME/go/src/
Expand All @@ -68,14 +70,12 @@ jobs:
code_lint:
runs-on: ubuntu-latest
env:
GO_VERSION: 1.23.4
steps:
- name: Checkout current repository
uses: actions/checkout@v4
with:
fetch-depth: 0
path: agent
path: ${{ env.PNAME }}

- name: Checkout framework repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
run: |
echo Home path is $HOME
export WORKBASE=$HOME/go/src/infini.sh
export WORK=$WORKBASE/agent
export WORK=$WORKBASE/$PNAME
# for test workspace
mkdir -p $HOME/go/src/
Expand Down

0 comments on commit d051c81

Please sign in to comment.