-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (33 loc) · 1.21 KB
/
test-nodejs-apis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Test Node.js APIs
on:
schedule:
# Run every day at 3:30 AM UTC
- cron: '30 3 * * *'
jobs:
test-nodejs-apis:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/stage'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
- name: Install dependencies
run: yarn install
- name: Install Docker Compose
run: |
curl -L "https://github.com/docker/compose/releases/download/v2.29.7/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version
- name: Run E2E tests
run: yarn test:nodejs-apis
- name: Process README.md and Commit
run: |
git config --global user.email "[email protected]"
git config --global user.name "Azion Bundler Reports"
git add ./docs/nodejs-apis.md
git commit -m "chore: update reports node.js apis" --no-verify || echo "No changes to commit."
git push --force
env:
GH_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}