v3 #184
Workflow file for this run
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: CI | |
on: | |
[pull_request, push] | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
OWNER: ${{ github.repository_owner }} | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
- name: Create GitHub deployment | |
uses: chrnorm/deployment-action@v2 | |
id: deployment | |
with: | |
token: ${{ env.GITHUB_TOKEN }} | |
environment: test | |
initial-status: success | |
- name: Delete GitHub deployment | |
uses: ./ | |
with: | |
token: ${{ env.GITHUB_TOKEN }} | |
environment: test | |