Skip to content

Commit

Permalink
Chore: Update github actions to v4 (#108)
Browse files Browse the repository at this point in the history
* update actions versions

* remove testing branch from on clause
  • Loading branch information
Matte22 authored Mar 11, 2024
1 parent 26ce94a commit e5755d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-binary-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
fi
- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: binary-artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Important to fetch all history for accurate blame information
- name: Analyze Watcher with SonarCloud
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,33 @@ on:
- "lib/**"
- "index.js"
- "test/**"
- ".github/workflows/unit-testing.yml"
pull_request:
branches:
- main
paths:
- "lib/**"
- "index.js"
- "test/**"

- ".github/workflows/unit-testing.yml"
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: "20.x"
- name: Install app dependencies
run: npm ci
- name: Create .env file
run: echo -e "WATCHER_COLLECTION=1\nWATCHER_API_BASE=url\nWATCHER_AUTHORITY=auth\nWATCHER_CLIENT_ID=clientId\nWATCHER_CLIENT_SECRET=secret" > .env
- name: Run tests
run: npm test
- name: Upload coverage to github
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: coverage
Expand Down

0 comments on commit e5755d3

Please sign in to comment.