diff --git a/.github/move.yml b/.github/move.yml deleted file mode 100644 index 8b13789..0000000 --- a/.github/move.yml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f9cfa68 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Build, test, and lint +on: + push: + branches: [ dev, main ] + pull_request: + branches: [ dev, main ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: [ '16' ] + steps: + - uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + - name: Cache Node modules + uses: actions/cache@v3 + with: + path: node_modules + key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} + - name: Install dependencies, build assets, and run tests + run: | + npm install + npm run build + npm run test + - name: Run Stylelint + run: npm run lint