Skip to content

Commit

Permalink
update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
hipitihop committed May 24, 2023
1 parent 532c748 commit b2bd367
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/continuous-deployment-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
# Source: https://github.com/day8/dockerfile-for-dev-ci-image
image: ghcr.io/day8/dockerfile-for-dev-ci-image/chrome-56:2
image: ghcr.io/day8/dockerfile-for-dev-ci-image/chrome-56:2
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# All of the Git history is required for day8/lein-git-inject to determine the version string.
fetch-depth: 0
- name: Maven cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: /root/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj', '.github/workflows/**') }}
restore-keys: |
${{ runner.os }}-maven-
- name: npm cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('project.clj') }}-${{ hashFiles('**/deps.cljs') }}
Expand All @@ -42,7 +42,7 @@ jobs:
${{ runner.os }}-shadow-cljs-
- run: lein ci
- name: Slack notification
uses: homoluctus/slatify@v2.0.1
uses: lazy-actions/slatify@master
if: failure() || cancelled()
with:
type: ${{ job.status }}
Expand All @@ -54,20 +54,20 @@ jobs:
release:
name: Release
needs: test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
# Source: https://github.com/day8/dockerfile-for-dev-ci-image
image: ghcr.io/day8/dockerfile-for-dev-ci-image/chrome-56:2
image: ghcr.io/day8/dockerfile-for-dev-ci-image/chrome-56:2
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# All of the Git history is required for day8/lein-git-inject to determine the version string.
fetch-depth: 0
- name: Maven cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: /root/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj', '.github/workflows/**') }}
Expand All @@ -92,7 +92,7 @@ jobs:
draft: false
prerelease: false
- name: Slack notification
uses: homoluctus/slatify@v2.0.1
uses: lazy-actions/slatify@master
if: always()
with:
type: ${{ job.status }}
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,42 @@ on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
# Source: https://github.com/day8/dockerfile-for-dev-ci-image
image: ghcr.io/day8/dockerfile-for-dev-ci-image/chrome-56:2
image: ghcr.io/day8/dockerfile-for-dev-ci-image/chrome-56:2
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# All of the Git history is required for day8/lein-git-inject to determine the version string.
fetch-depth: 0
- name: Maven cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: /root/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj', '.github/workflows/**') }}
restore-keys: |
${{ runner.os }}-maven-
- name: npm cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('project.clj') }}-${{ hashFiles('**/deps.cljs') }}
restore-keys: |
${{ runner.os }}-npm-
- name: shadow-cljs compiler cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: .shadow-cljs
key: ${{ runner.os }}-shadow-cljs-${{ github.sha }}
restore-keys: |
${{ runner.os }}-shadow-cljs-
- run: lein ci
- name: Slack notification
uses: homoluctus/slatify@v2.0.1
uses: lazy-actions/slatify@master
if: failure() || cancelled()
with:
type: ${{ job.status }}
Expand Down

0 comments on commit b2bd367

Please sign in to comment.