Skip to content

Commit

Permalink
Merge pull request #361 from kbdharun/master
Browse files Browse the repository at this point in the history
CI (workflows): bump actions version; fix Node deprecation warning; add LF as default eol
  • Loading branch information
wjt authored Apr 27, 2023
2 parents 8c35fe7 + 03619ef commit 4766d06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ref: https://git-scm.com/docs/gitattributes
* text=auto eol=lf
18 changes: 9 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand All @@ -42,10 +42,10 @@ jobs:
runs-on: ubuntu-latest
container: debian:bullseye
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Prime pip cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: |
Expand All @@ -64,7 +64,7 @@ jobs:
lxml-stubs
- name: Prime mypy cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: .mypy_cache
key: |
Expand All @@ -83,14 +83,14 @@ jobs:
name: Build and test container
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build container
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
Expand Down Expand Up @@ -118,15 +118,15 @@ jobs:

- name: Login to registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push image to registry
if: github.event_name != 'pull_request'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
Expand Down

0 comments on commit 4766d06

Please sign in to comment.