diff --git a/.github/workflows/nuxt.yml b/.github/workflows/nuxt.yml new file mode 100644 index 00000000..2e8ee1c8 --- /dev/null +++ b/.github/workflows/nuxt.yml @@ -0,0 +1,32 @@ +name: Nuxt CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '12.x' + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + ${{ runner.OS }}- + - name: Install dependencies + run: npm ci + - name: Build Knossos + run: npm run build + - name: Run Lint + run: npm run lint