checkin #648
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: checkin | |
on: | |
schedule: | |
- cron: '00 04 * * *' | |
# 每天中午12点签到 | |
workflow_dispatch: # click the button on Github repo! | |
env: | |
LOGIN_URL: 'https://keylol.com' | |
LOGIN_USERNAME: ${{ secrets.LOGIN_USERNAME }} | |
LOGIN_PASSWORD: ${{ secrets.LOGIN_PASSWORD }} | |
UID: ${{ secrets.UID }} | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 6.32.9 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npx playwright test | |
# - uses: actions/upload-artifact@v2 | |
# if: always() | |
# with: | |
# name: playwright-report | |
# path: playwright-report/ | |
# retention-days: 30 |