Skip to content

Commit

Permalink
feat: add ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
frytg committed Nov 23, 2024
1 parent 31b5b42 commit d290b60
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
day: friday
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# adapted from https://github.com/denoland/std/blob/main/.github/workflows/workspace_publish.yml

name: ci

on:
push:
branches:
- main
- dev/*
- chore/*
- feature/*
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read

jobs:
test-deno:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: canary

- name: Format & Check
run: deno run check

# - name: Test
# run: deno task test

- name: Publish dry run
run: deno publish --dry-run
if: matrix.os == 'ubuntu-latest'
8 changes: 4 additions & 4 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true
},
"exclude": [".git"],
"exclude": [".git", ".github"],
"fmt": {
"useTabs": true,
"lineWidth": 120,
"semiColons": false,
"singleQuote": true,
"exclude": ["**/*.md"]
"exclude": ["**/*.md", "**/*.yml", "**/*.yaml"]
},
"tasks": {
"check": "deno fmt --check && deno lint && biome lint"
Expand All @@ -27,9 +27,9 @@
"no-console"
]
},
"exclude": ["**/*.md"]
"exclude": ["**/*.md", "**/*.yml", "**/*.yaml"]
},
"workspace": ["./check-required-env", "./logger"],
"workspace": ["./check-required-env", "./dates", "./logger"],
"imports": {
"@biomejs/biome": "npm:@biomejs/biome@^1.9.4",
"@types/node": "npm:@types/node@^22.9.0"
Expand Down
18 changes: 18 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d290b60

Please sign in to comment.