From 0b160a6741edb276986242bd3ed04a6306a9123c Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Thu, 24 Dec 2020 18:48:50 -0700 Subject: [PATCH] GitHub Actions --- .github/workflows/nuxt.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/nuxt.yml 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