Skip to content

Commit

Permalink
chore: GitHub Actions
Browse files Browse the repository at this point in the history
Use GitHub actions workflow
  • Loading branch information
marcobiedermann committed Feb 29, 2024
1 parent c9b9853 commit 96d5790
Showing 1 changed file with 3 additions and 33 deletions.
36 changes: 3 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,6 @@ on:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: ⏬ Checkout
uses: actions/checkout@v2

- name: 🔢 Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm

- name: ⚙️ Use Node.js (.nvmrc)
uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- name: 🔋 Install
run: npm ci

- name: 🤖 Linting
run: npm run lint

- name: 🧪 Testing
run: npm run test:ci

- name: 🛠️ Building
run: npm run build

- name: 📊 Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
ci:
uses: marcobiedermann/actions/.github/workflows/ci.yml@main
secrets: inherit

0 comments on commit 96d5790

Please sign in to comment.