diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..cd8cd87 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: [vtrbo] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a4ac7b6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,81 @@ +name: CI + +on: + push: + branches: + - main + + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + + - name: Set node + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: pnpm + + - name: Install + run: npm ci + + - name: Lint + run: npm run lint + + # typecheck: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + + # - name: Install pnpm + # uses: pnpm/action-setup@v2 + + # - name: Set node + # uses: actions/setup-node@v3 + # with: + # node-version: 16.x + # cache: pnpm + + # - name: Install + # run: npm ci + + # - name: Typecheck + # run: npm run typecheck + + test: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + node: [14.x, 16.x] + os: [ubuntu-latest, windows-latest, macos-latest] + fail-fast: false + + steps: + - uses: actions/checkout@v3 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + + - name: Set node version to ${{ matrix.node }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + cache: pnpm + + - name: Install + run: npm ci + + - name: Build + run: npn run build + + - name: Test + run: npn run test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..216ba3b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,22 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v3 + with: + node-version: 16.x + + - run: npx changelogithub + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.gitignore b/.gitignore index 925d778..040fbfc 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,3 @@ lib-cov logs node_modules temp -.github