Skip to content

Commit

Permalink
feat: create ci action #21
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Apr 16, 2024
1 parent 8044851 commit b6b355d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Continuous Integration

on: push

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Install dependencies and Build app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: corepack enable

- name: Set Node.js 18.20.1
uses: actions/setup-node@v3
with:
node-version: 18.20.1

- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install

- name: Prepare Nuxt
uses: borales/actions-yarn@v4
with:
cmd: prepare

- name: Lint codebase
uses: borales/actions-yarn@v4
with:
cmd: lint
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"private": true,
"packageManager": "yarn@4.1.1",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"start": "nuxt start",
"preview": "nuxt preview",
"build": "nuxi build",
"dev": "nuxi dev",
"generate": "nuxi generate",
"prepare": "nuxi prepare",
"preview": "nuxi preview",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "jest"
Expand Down

0 comments on commit b6b355d

Please sign in to comment.