Skip to content

Commit

Permalink
re-add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tgymnich committed May 30, 2024
1 parent 96d3d3c commit 8913bd4
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# npm
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
25 changes: 25 additions & 0 deletions .github/workflows/checkin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "PR Checks"
on: [pull_request, push]

jobs:
check_pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1

- name: "npm ci"
run: npm ci

- name: "npm run build"
run: npm run build

- name: "npm run test"
run: npm run test

- name: "check for uncommitted changes"
# Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed.
run: |
git diff --exit-code --stat -- . ':!node_modules' \
|| (echo "##[error] found changed files after build. please 'npm run build && npm run format'" \
"and check in all changes" \
&& exit 1)
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Publish GitHub Action"
on:
push:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: tgymnich/publish-github-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8913bd4

Please sign in to comment.