mirror of https://github.com/OpenVidu/openvidu.git
Merge pull request #865 from OpenVidu/pin-github-actions-sha
Pin GitHub Actions to specific commit SHAs and add Dependabotpull/866/head
commit
260fd12e97
|
|
@ -0,0 +1,6 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
|
@ -27,11 +27,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.commit_sha || github.sha }}
|
ref: ${{ inputs.commit_sha || github.sha }}
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
- name: Commit URL
|
- name: Commit URL
|
||||||
|
|
@ -86,11 +86,11 @@ jobs:
|
||||||
script: e2e:lib-virtual-backgrounds
|
script: e2e:lib-virtual-backgrounds
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.commit_sha || github.sha }}
|
ref: ${{ inputs.commit_sha || github.sha }}
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
- name: Install wait-on package
|
- name: Install wait-on package
|
||||||
|
|
@ -103,15 +103,15 @@ jobs:
|
||||||
docker run --network=host -d -p 4444:4444 ${{ env.CHROME_IMAGE }}
|
docker run --network=host -d -p 4444:4444 ${{ env.CHROME_IMAGE }}
|
||||||
fi
|
fi
|
||||||
- name: Run openvidu-local-deployment
|
- name: Run openvidu-local-deployment
|
||||||
uses: OpenVidu/actions/start-openvidu-local-deployment@main
|
uses: OpenVidu/actions/start-openvidu-local-deployment@35d136377813cf9b0b23d12d16d57864ccf3a8c2 # v1.0.2
|
||||||
- name: Start OpenVidu Call backend
|
- name: Start OpenVidu Call backend
|
||||||
uses: OpenVidu/actions/start-openvidu-call@main
|
uses: OpenVidu/actions/start-openvidu-call@35d136377813cf9b0b23d12d16d57864ccf3a8c2 # v1.0.2
|
||||||
- name: Build and Serve openvidu-components-angular Testapp
|
- name: Build and Serve openvidu-components-angular Testapp
|
||||||
uses: OpenVidu/actions/start-openvidu-components-testapp@main
|
uses: OpenVidu/actions/start-openvidu-components-testapp@35d136377813cf9b0b23d12d16d57864ccf3a8c2 # v1.0.2
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
env:
|
env:
|
||||||
LAUNCH_MODE: CI
|
LAUNCH_MODE: CI
|
||||||
run: npm run ${{ matrix.script }} --prefix openvidu-components-angular
|
run: npm run ${{ matrix.script }} --prefix openvidu-components-angular
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
uses: OpenVidu/actions/cleanup@main
|
uses: OpenVidu/actions/cleanup@35d136377813cf9b0b23d12d16d57864ccf3a8c2 # v1.0.2
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Configure OpenVidu Local Deployment
|
- name: Configure OpenVidu Local Deployment
|
||||||
uses: OpenVidu/actions/start-openvidu-local-deployment@main
|
uses: OpenVidu/actions/start-openvidu-local-deployment@35d136377813cf9b0b23d12d16d57864ccf3a8c2 # v1.0.2
|
||||||
with:
|
with:
|
||||||
ref-openvidu-local-deployment: development
|
ref-openvidu-local-deployment: development
|
||||||
pre_startup_commands: |
|
pre_startup_commands: |
|
||||||
|
|
@ -26,12 +26,12 @@ jobs:
|
||||||
curl -sSL https://get.livekit.io/cli | bash
|
curl -sSL https://get.livekit.io/cli | bash
|
||||||
|
|
||||||
- name: Checkout current repository
|
- name: Checkout current repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
path: openvidu
|
path: openvidu
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
with:
|
with:
|
||||||
node-version: 24
|
node-version: 24
|
||||||
|
|
||||||
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
run: npm run test:ci
|
run: npm run test:ci
|
||||||
|
|
||||||
- name: Upload report
|
- name: Upload report
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: openvidu-integration-tests-report
|
name: openvidu-integration-tests-report
|
||||||
|
|
@ -52,5 +52,5 @@ jobs:
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
uses: OpenVidu/actions/cleanup@main
|
uses: OpenVidu/actions/cleanup@35d136377813cf9b0b23d12d16d57864ccf3a8c2 # v1.0.2
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue