diff --git a/.gitattributes b/.gitattributes index dfe0770..5a0d5e4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,2 @@ # Auto detect text files and perform LF normalization -* text=auto +* text=auto eol=lf diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c279d89..76e6394 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,17 @@ name: ci -on: [push, pull_request] +on: + pull_request: + push: + branches: + - main + jobs: build: - runs-on: ubuntu-latest strategy: matrix: - node: [16.x, 18.x] + node: [16.x, 18.x, 20.x] + platform: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -14,6 +20,8 @@ jobs: cache: 'yarn' cache-dependency-path: 'yarn.lock' - run: yarn install --frozen-lockfile --non-interactive + - name: Build + run: yarn compile - name: Test run: yarn test - name: Check formatting