X-Git-Url: https://git.njae.me.uk/?p=editorial.git;a=blobdiff_plain;f=.github%2Fworkflows%2Ftest.yml;fp=.github%2Fworkflows%2Ftest.yml;h=94db5cfaa31ac9b57bae99abbc30445a5eb8f990;hp=0000000000000000000000000000000000000000;hb=7314552e2a0046322445429ec07a315023e93555;hpb=d2a0604b0e5886f9c34f49f334e25a2f6b9e9822 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..94db5cf --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Test +on: + pull_request: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-18.04 + strategy: + matrix: + node: [ '10' ] + name: Node ${{ matrix.node }} + steps: + - uses: actions/checkout@v1 + - name: Cache node modules + uses: actions/cache@v1 + with: + path: node_modules + key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.OS }}-build-${{ env.cache-name }}- + ${{ runner.OS }}-build- + ${{ runner.OS }}- + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - run: npm install yarn + - run: yarn install + - run: yarn test:ci