Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Oct 8, 2023
1 parent 81acb85 commit 86d4275
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ permissions:

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -19,3 +20,29 @@ jobs:
with:
node-version: lts/*
registry-url: https://npm.pkg.github.com

lint:
name: Check Code Style
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Run code style check
uses: myrotvorets/composite-actions/node-run-script@master
with:
registry-url: https://npm.pkg.github.com
script: lint

typecheck:
name: Check Types
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Run type check
uses: myrotvorets/composite-actions/node-run-script@master
with:
registry-url: https://npm.pkg.github.com
script: typecheck
6 changes: 6 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ on:
- 'test/**'
workflow_dispatch:

permissions:
contents: read

jobs:
docker:
name: Build Docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Myrotvorets.news Telegram Bot",
"scripts": {
"build": "tsc",
"checktypes": "tsc --noEmit",
"typecheck": "tsc --noEmit",
"lint": "eslint -f gha .",
"lint:fix": "eslint --fix .",
"prestart:dev": "ts-node --transpile-only ./test/migrate.mts",
Expand Down

0 comments on commit 86d4275

Please sign in to comment.