Skip to content

Commit

Permalink
Merge pull request #3 from titsex/ci/add
Browse files Browse the repository at this point in the history
add github workflow
  • Loading branch information
titsex authored Sep 16, 2024
2 parents e2dcda4 + ea835ee commit d5eedba
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 12 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Publish
on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Install distube (for types, from peer)
run: pnpm add distube

- name: Build
run: pnpm build
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Install distube (for types, from peer)
run: pnpm add distube

- name: Test
env:
VK_API_TOKEN: ${{ secrets.VK_API_TOKEN }}
run: pnpm test
15 changes: 3 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,18 @@
"directories": {
"lib": "src"
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"format": "biome format ./src",
"lint": "biome lint ./src",
"build": "tsc && tsup",
"test": "node --env-file=.env ./node_modules/vitest/vitest.mjs run --coverage --no-file-parallelism"
"test": "vitest run --coverage --no-file-parallelism"
},
"repository": {
"type": "git",
"url": "git+https://github.com/titsex/distube-vk-music-plugin.git"
},
"keywords": [
"distube",
"plugin",
"vk",
"music",
"vkmusic",
"discord"
],
"keywords": ["distube", "plugin", "vk", "music", "vkmusic", "discord"],
"bugs": {
"url": "https://github.com/titsex/distube-vk-music-plugin/issues"
},
Expand Down

0 comments on commit d5eedba

Please sign in to comment.