Skip to content

Instantly share code, notes, and snippets.

@bastosmichael
Last active October 3, 2024 13:07
Show Gist options
  • Save bastosmichael/fdd6bb1d177098cb1ecc7b70cf9cccfa to your computer and use it in GitHub Desktop.
Save bastosmichael/fdd6bb1d177098cb1ecc7b70cf9cccfa to your computer and use it in GitHub Desktop.

Revisions

  1. bastosmichael revised this gist Oct 3, 2024. 1 changed file with 16 additions and 16 deletions.
    32 changes: 16 additions & 16 deletions workflows-yarn-ci.yml
    Original file line number Diff line number Diff line change
    @@ -26,25 +26,25 @@ jobs:
    node-version: 16.x
    cache: 'yarn'

    # - name: Run install
    # uses: borales/actions-yarn@v4
    # with:
    # cmd: install # will run `yarn install` command
    - name: Run install
    uses: borales/actions-yarn@v4
    with:
    cmd: install # will run `yarn install` command

    # - name: Lint
    # uses: borales/actions-yarn@v4
    # with:
    # cmd: lint
    - name: Lint
    uses: borales/actions-yarn@v4
    with:
    cmd: lint

    # - name: Build production bundle
    # uses: borales/actions-yarn@v4
    # with:
    # cmd: build
    - name: Build production bundle
    uses: borales/actions-yarn@v4
    with:
    cmd: build

    # - name: Test
    # uses: borales/actions-yarn@v4
    # with:
    # cmd: test
    - name: Test
    uses: borales/actions-yarn@v4
    with:
    cmd: test

    dependabot:
    name: 'Dependabot'
  2. bastosmichael revised this gist Feb 23, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion workflows-npm-ci.yml
    Original file line number Diff line number Diff line change
    @@ -26,8 +26,9 @@ jobs:
    node-version: 16.x
    cache: 'npm'
    - run: npm ci
    - run: npm run lint
    - run: npm run build --if-present

    - run: npm run test

    dependabot:
    name: 'Dependabot'
  3. bastosmichael revised this gist Feb 23, 2023. 2 changed files with 0 additions and 6 deletions.
    3 changes: 0 additions & 3 deletions workflows-npm-ci.yml
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,6 @@
    name: Continous Integration

    on:
    push:
    branches:
    - 'main'
    pull_request:

    permissions:
    3 changes: 0 additions & 3 deletions workflows-yarn-ci.yml
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,6 @@
    name: Continous Integration

    on:
    push:
    branches:
    - 'main'
    pull_request:

    permissions:
  4. bastosmichael revised this gist Feb 1, 2023. 2 changed files with 50 additions and 0 deletions.
    50 changes: 50 additions & 0 deletions workflows-npm-ci.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    name: Continous Integration

    on:
    push:
    branches:
    - 'main'
    pull_request:

    permissions:
    pull-requests: write
    contents: write

    jobs:
    build:
    name: 'Build 📦'
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Cache
    uses: actions/cache@v3
    with:
    path: |
    **/public
    **/.cache
    key: cache
    - name: Use Node.js
    uses: actions/setup-node@v3
    with:
    node-version: 16.x
    cache: 'npm'
    - run: npm ci
    - run: npm run build --if-present


    dependabot:
    name: 'Dependabot'
    needs: [build]
    runs-on: ubuntu-latest
    if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
    steps:
    - name: Dependabot metadata
    id: metadata
    uses: dependabot/[email protected]
    with:
    github-token: '${{ secrets.GITHUB_TOKEN }}'
    - name: Enable auto-merge for Dependabot PRs
    run: gh pr merge --auto --merge "$PR_URL"
    env:
    PR_URL: ${{github.event.pull_request.html_url}}
    GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
    File renamed without changes.
  5. bastosmichael revised this gist Jan 31, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion workflows-ci.yml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ name: Continous Integration
    on:
    push:
    branches:
    - 'master'
    - 'main'
    pull_request:

    permissions:
  6. bastosmichael revised this gist Jan 31, 2023. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions dependabot.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    version: 2
    updates:
    - package-ecosystem: 'npm' # See documentation for possible values
    directory: '/' # Location of package manifests
    open-pull-requests-limit: 25
    schedule:
    interval: 'daily'
    - package-ecosystem: 'github-actions' # See documentation for possible values
    directory: '/' # Location of package manifests
    open-pull-requests-limit: 25
    schedule:
    interval: 'daily'
  7. bastosmichael created this gist Jan 31, 2023.
    67 changes: 67 additions & 0 deletions workflows-ci.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,67 @@
    name: Continous Integration

    on:
    push:
    branches:
    - 'master'
    pull_request:

    permissions:
    pull-requests: write
    contents: write

    jobs:
    build:
    name: 'Build 📦'
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Cache
    uses: actions/cache@v3
    with:
    path: |
    **/public
    **/.cache
    key: cache
    - name: Use Node.js
    uses: actions/setup-node@v3
    with:
    node-version: 16.x
    cache: 'yarn'

    # - name: Run install
    # uses: borales/actions-yarn@v4
    # with:
    # cmd: install # will run `yarn install` command

    # - name: Lint
    # uses: borales/actions-yarn@v4
    # with:
    # cmd: lint

    # - name: Build production bundle
    # uses: borales/actions-yarn@v4
    # with:
    # cmd: build

    # - name: Test
    # uses: borales/actions-yarn@v4
    # with:
    # cmd: test

    dependabot:
    name: 'Dependabot'
    needs: [build]
    runs-on: ubuntu-latest
    if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
    steps:
    - name: Dependabot metadata
    id: metadata
    uses: dependabot/[email protected]
    with:
    github-token: '${{ secrets.GITHUB_TOKEN }}'
    - name: Enable auto-merge for Dependabot PRs
    run: gh pr merge --auto --merge "$PR_URL"
    env:
    PR_URL: ${{github.event.pull_request.html_url}}
    GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}