From 5214228a7277bd9511f877eaff58ff02d36ae8f4 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sat, 11 Nov 2023 21:48:53 +0100 Subject: [PATCH] Add linting and build pipeline --- .github/workflows/ci.yml | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..59a4491 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,56 @@ +name: ci + +on: + push: + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install nodejs + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run lint + + build: + runs-on: ubuntu-latest + strategy: + matrix: + include: + - manifest_version: 2 + - manifest_version: 3 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install nodejs + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + env: + MANIFEST_VERSION: ${{ matrix.manifest_version }} + run: npm run build + + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: stream-bypass-mv${{ matrix.manifest_version }} + path: ./dist + if-no-files-found: error