Test #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# Run every Sunday at 00:00 | |
- cron: '0 0 * * 0' | |
jobs: | |
test-workflow: | |
name: Test workflow | |
runs-on: ubuntu-latest | |
steps: | |
- name: 01-Checkout | |
uses: actions/checkout@v4 | |
- name: 02-Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '>=22.6.0' | |
- name: 03-Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: 04-Install dependencies | |
run: pnpm install | |
- name: 05-Run tests | |
run: pnpm coverage | |
- name: 06-Upload coverage to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
files: ./coverage/coverage-final.json | |
- name: 07-Generate images Test via Docker | |
# Run the local action defined in the `action.yml` file | |
# It will build the Docker image and run the `start.sh` script | |
uses: ./ | |
with: | |
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
COMMIT_MESSAGE: "✅ Test by waka-chart-action" | |
BRANCH_NAME: "gh-pages" | |
IMAGES_FOLDER: "images" | |
GIT_USER_EMAIL: "mamboer@gmail.com" | |
GIT_USER_NAME: "Levin Wong" |