Skip to content

Commit

Permalink
ci: upgrade ci pipelines (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Feb 4, 2024
1 parent d60f0ee commit 353eaff
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ updates:
timezone: "Etc/UTC"
rebase-strategy: auto
versioning-strategy: increase
commit-message:
prefix: "fix(deps)"
prefix-development: "chore(deps)"
67 changes: 32 additions & 35 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: c-hive/gha-yarn-cache@v2

- name: "Setup Node.js"
uses: actions/setup-node@v3.6.0
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: "Install dependencies"
run: yarn install --frozen-lockfile
- uses: bahmutov/npm-install@v1
with:
useRollingCache: true
install-command: yarn --frozen-lockfile

- name: "Lint"
run: yarn lint -f @jamesacarr/github-actions
Expand All @@ -37,19 +36,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: c-hive/gha-yarn-cache@v2

- name: "Setup Node.js"
uses: actions/setup-node@v3.6.0
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: "Install dependencies"
run: yarn install --frozen-lockfile
- uses: bahmutov/npm-install@v1
with:
useRollingCache: true
install-command: yarn --frozen-lockfile

- name: "Build"
run: yarn build
Expand All @@ -59,26 +57,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: c-hive/gha-yarn-cache@v2

- name: "Setup Node.js"
uses: actions/setup-node@v3.6.0
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: "Install dependencies"
run: yarn install --frozen-lockfile
- uses: bahmutov/npm-install@v1
with:
useRollingCache: true
install-command: yarn --frozen-lockfile

- name: "Test"
run: yarn test:coverage --testLocationInResults --reporters=default --reporters=@jamesacarr/jest-reporter-github-actions

- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/lcov.info
fail_ci_if_error: true

Expand All @@ -104,26 +102,25 @@ jobs:
new-release-published: ${{ steps.release.outputs.new-release-published }}
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: "master"

- uses: c-hive/gha-yarn-cache@v2
fetch-depth: 0

- name: "Setup Node.js"
uses: actions/setup-node@v3.6.0
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: "Install dependencies"
run: yarn install --frozen-lockfile
- uses: bahmutov/npm-install@v1
with:
useRollingCache: true
install-command: yarn --frozen-lockfile

- name: "Build package"
run: yarn build

- name: "Release"
id: "release"
uses: codfish/semantic-release-action@v2.2.0
uses: codfish/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 353eaff

Please sign in to comment.