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 cfbb548
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 6 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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: Typecheck
uses: borales/actions-yarn@v4
with:
cmd: typecheck

- name: Lint
uses: borales/actions-yarn@v4
with:
cmd: lint
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
"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",
"typecheck": "nuxi typecheck",
"test": "jest"
},
"dependencies": {
Expand Down
1 change: 0 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import _ from 'underscore'
import type { User } from '~/libs/apiTypes'
import { getUser } from '~/libs/apiTypes'
import {
getAsyncDataOrNull,
getAsyncDataOrThrows,
setAsyncRef,
} from '~/libs/getAsyncData'
Expand Down

0 comments on commit cfbb548

Please sign in to comment.