name: ci on: push: branches: - develop jobs: ci: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: "12.x" - name: get cache dir path run: echo "::set-output name=dir::$(yarn cache dir)" id: yarn-cache-dir-path - name: restore cache if exists uses: actions/cache@v1 # python pipの時はここにサンプルがある https://github.com/actions/cache#implementation-examples id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - run: yarn install working-directory: ./node - name: run tests run: yarn ci working-directory: ./node