-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (32 loc) · 1.14 KB
/
tests-e2e.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
name: Report Generation
on:
schedule:
- cron: '30 2 * * *'
jobs:
post-merge-tasks:
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:e2e
- name: Process README.md and Commit
run: |
git config --global user.email "[email protected]"
git config --global user.name "Azion Bundler Reports"
git add README.md
git commit -m "chore: update reports" --no-verify || echo "No changes to commit."
git push --force
env:
GH_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}