Skip to content

Commit

Permalink
add test for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
awxiaoxian2020 committed Nov 17, 2023
1 parent cedf577 commit e5661b6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install
run: |
Expand All @@ -44,4 +44,4 @@ jobs:
staticSrcPath: ./dist
bucket: ${{ secrets.BUCKET }}
region: ${{ secrets.REGION }}
forceFiles: ${{ secrets.FORCE_FILES }}
forceFiles: ${{ secrets.FORCE_FILES }}
35 changes: 35 additions & 0 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This is a basic workflow to help you get started with Actions

name: PR CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [cn]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Install
run: |
yarn
yarn clean
- name: Build
run: |
yarn build
- name: Check Build
run: |
sudo -i
sudo chown -R $USER ./dist

0 comments on commit e5661b6

Please sign in to comment.