Skip to content

ci: add workflow_dispatch event #67

ci: add workflow_dispatch event

ci: add workflow_dispatch event #67

Workflow file for this run

name: CI
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: CI
timeout-minutes: 15
runs-on: ubuntu-latest
environment: Production
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test
- name: Lint
run: npm run lint
- name: Deploy
uses: dokku/github-action@master
with:
git_remote_url: ${{ vars.DOKKU_GIT_REMOTE_URL }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}