Skip to content

Commit

Permalink
ci(init): add dependabot and basic ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
giamir committed Oct 12, 2023
1 parent 00cc1a5 commit c48a075
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
versioning-strategy: increase
37 changes: 37 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v3

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: 🏗 Install and Build
run: |
npm ci
npx playwright install --with-deps
npm run build
- name: ▶️ Linting
run: npm run lint

- name: ▶️ Testing
run: npm run test

# cancel the jobs if another workflow is kicked off for the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

0 comments on commit c48a075

Please sign in to comment.