From fa86948ba0d65ee5a4747342a3a17cab9611b8df Mon Sep 17 00:00:00 2001 From: hywax Date: Fri, 29 Dec 2023 21:19:25 +0500 Subject: [PATCH] ci: setup github --- .github/dependabot.yml | 6 ++++++ .github/workflows/main.yml | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7b2ee3a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: npm + directory: "/" + schedule: + interval: daily diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f7a82ea --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: Main + +on: [push, pull_request] + +jobs: + main: + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - run: git config --global core.autocrlf false + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20' + - run: pnpm build + - run: pnpm test