diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml new file mode 100644 index 0000000..25e73d4 --- /dev/null +++ b/.github/workflows/test-and-build.yml @@ -0,0 +1,30 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Automated Lint and Test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + defaults: + run: + working-directory: server + + steps: + - uses: actions/checkout@v1 + - uses: actions/cache@v2 + with: + path: server/node_modules + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + + - name: Install packages + run: yarn install + + - name: Run Tests + run: yarn test diff --git a/.yarnrc.yml b/.yarnrc.yml deleted file mode 100644 index 242c974..0000000 --- a/.yarnrc.yml +++ /dev/null @@ -1 +0,0 @@ -yarnPath: .yarn/releases/yarn-1.23.0-20220130.1630.cjs