From 37539af1edae828e11480e90b5a93bab21d15d30 Mon Sep 17 00:00:00 2001 From: Daniel Meyer <8926560+pubkey@users.noreply.github.com> Date: Wed, 15 Feb 2023 16:32:54 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..98db1d8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + + workflow_dispatch: + +jobs: + core: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - name: Set node version + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + + - name: Reuse npm cache folder + uses: actions/cache@v3 + env: + cache-name: cache-node-modules + with: + path: | + ~/.npm + ./node_modules + key: ${{ runner.os }}-npm-core-x8-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-npm-core-x8- + + - run: npm install + - run: npm run lint + - run: npm run export + - run: npm run preview + - run: npm run test:export + - run: npm run test:docs + - run: npm run test:e2e