diff --git a/.github/workflows/deploy_stage.yml b/.github/workflows/deploy_stage.yml index 42a5135..5d87016 100644 --- a/.github/workflows/deploy_stage.yml +++ b/.github/workflows/deploy_stage.yml @@ -1,9 +1,8 @@ name: Stage on: - pull_request: - types: [opened, synchronize, reopened] - branches: [main] + push: + branches: [stage] jobs: test: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d077cdc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: Test + +on: + pull_request: + types: [opened, synchronize, reopened] + branches: [main, stage] + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 24.x + uses: actions/setup-node@v4 + with: + node-version: '24' + - run: npm install + - run: npm test