Skip to content

v3

v3 #184

Workflow file for this run

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