chore: validate tags

This commit is contained in:
xHyroM 2022-07-16 14:24:19 +02:00
parent f031102cc0
commit b42de46426
4 changed files with 48 additions and 0 deletions

28
.github/workflows/tag-validation.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: test
on:
pull_request_target:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Bun
uses: xhyrom/setup-bun@v0.1.3
with:
bun-version: latest
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Get changed files
uses: Mineflash07/gh-action-get-changed-files@feature/support-pr-target-event
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Add json
run: cp $HOME/files.json ./scripts/validateTags/
- name: Validate tags
run: bun run validate

View file

@ -0,0 +1,6 @@
{
"name": "validate-tags",
"scripts": {
"start": "bun src/index.ts"
}
}

View file

@ -0,0 +1,4 @@
const files = await Bun.file('./files.json').text();
console.log(files);
export { };

View file

@ -0,0 +1,10 @@
{
"compilerOptions": {
"lib": ["ESNext"],
"module": "esnext",
"target": "esnext",
"moduleResolution": "Node",
// "bun-types" is the important part
"types": ["bun-types"]
}
}