diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c3cca4..af64635 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,45 +1,30 @@ --- -name: Github CI +name: CI on: - - push - - pull_request + push: + branches: + - '**' + pull_request: + branches: + - '**' + schedule: + - cron: '0 4 1 * *' jobs: gulp: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Setup NodeJS - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: 20.10.0 - - - name: Setup NodeJS cache - uses: actions/cache@v1 - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node- - - - name: Find Yarn cache location - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Setup Yarn cache - uses: actions/cache@v1 - with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version: '20.16' - name: Install NodeJS dependencies - run: | - yarn install + run: make deps - name: Run Gulp - run: yarn run gulp + run: make build