diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..df1bf3d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 18.x + steps: + - uses: actions/checkout@v2 + - name: Use Node ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: yarn install --frozen-lockfile + - run: yarn lint . + - run: yarn test run + - run: yarn build diff --git a/README.md b/README.md index 85b30bf..75780ea 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Tiles Game +[![CI status](https://github.com/baldoalessandro/tiles_game/workflows/ci.yml/badge.svg)](https://github.com/baldoalessandro/tiles_games/actions) + A clone of NYT Tiles game in SolidJS ## TODO