Skip to content

Commit

Permalink
chore: use github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Apr 25, 2023
1 parent b964f8d commit 2ccf31a
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: gajus
patreon: gajus
59 changes: 59 additions & 0 deletions .github/workflows/feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
jobs:
lint:
environment: release
name: Lint
runs-on: ubuntu-latest
steps:
- name: setup repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: '20'
- run: npm ci
- run: npm run lint:eslint
- run: npm run lint:tsc
- run: npm run lint:cspell
timeout-minutes: 10
test:
environment: release
name: Test
needs:
- lint
runs-on: ${{ matrix.os }}
steps:
- name: setup repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: ${{ matrix.version }}
- run: npm ci
- env:
ROARR_LOG: 'true'
run: npm run test:vitest
- run: npm run build
strategy:
matrix:
os:
- ubuntu-latest
version:
- 18
- 19
timeout-minutes: 10
name: Test and build
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- ready_for_review
32 changes: 32 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
jobs:
test:
environment: release
name: Test
runs-on: ubuntu-latest
steps:
- name: setup repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: '20'
- run: npm ci
- run: npm run lint:eslint
- run: npm run lint:tsc
- run: npm run lint:cspell
- env:
ROARR_LOG: 'true'
run: npm run test:vitest
- run: npm run build
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
name: Test, build and release
on:
push:
branches:
- main

0 comments on commit 2ccf31a

Please sign in to comment.