diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 14a451aaa8..2683f662fb 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -11,9 +11,9 @@ jobs: node-version: [16.x] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0bb972752f..3e1c933403 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,13 +4,17 @@ jobs: test: runs-on: ubuntu-latest steps: - - id: file_changes - uses: trilom/file-changes-action@v1.2.3 - with: - output: 'json' - fileOutput: 'json' - name: Check out repository code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - id: file_changes + name: Determine changed files + env: + BASE_SHA: ${{ github.event.pull_request.base.sha }} + run: | + echo "files_modified=$(git diff --name-only --diff-filter=M "$BASE_SHA" "$GITHUB_SHA" | jq -R -s -c 'split("\n") | map(select(length > 0))')" >> "$GITHUB_OUTPUT" + echo "files_added=$(git diff --name-only --diff-filter=A "$BASE_SHA" "$GITHUB_SHA" | jq -R -s -c 'split("\n") | map(select(length > 0))')" >> "$GITHUB_OUTPUT" - name: Run changes files through test script env: ALCHEMY_CONNECTION_ARBITRUM: ${{ secrets.ALCHEMY_CONNECTION_ARBITRUM }}