diff --git a/.circleci/config.yml b/.circleci/config.yml index 7fd31fde..eb822f72 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs: - run: curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && apt-get install -y git-lfs - checkout - run: yarn --frozen-lockfile - - run: yarn flow + - run: yarn flow check - run: yarn lint - run: yarn test --maxWorkers=2 - run: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..dcc29063 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Flatris rulez +on: [push] + +jobs: + test: + name: Test + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04] + node: [10, 12, 14] + steps: + - uses: actions/checkout@v2 + with: + lfs: true + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - run: yarn --frozen-lockfile + - run: yarn flow check + - run: yarn lint + - run: yarn test --maxWorkers=2 + - run: yarn test:visual:check + - uses: actions/upload-artifact@v1 + with: + name: snapshots + path: web/__image_snapshots__