From 131a90666893b04f6cb7d09b61bb157e90cccdfb Mon Sep 17 00:00:00 2001 From: Hiroki Matsumoto Date: Sat, 3 Feb 2024 20:52:37 +0900 Subject: [PATCH] ci: update github actions --- .github/workflows/e2e.yaml | 10 +++++----- .github/workflows/passenger-app.yml | 18 +++++++++--------- .github/workflows/pull-request.yml | 6 +++--- README.md | 2 +- test/passenger-app/Dockerfile | 9 +++------ 5 files changed, 21 insertions(+), 24 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 341d3e6..2b4aecf 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -13,14 +13,14 @@ jobs: strategy: matrix: passenger-version: - - 6.0.12 - - 6.0.13 - - 6.0.14 + - 6.0.18 + - 6.0.19 + - 6.0.20 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: engineerd/setup-kind@v0.5.0 with: - version: v0.11.1 + version: "v0.21.0" - name: Kind Load Image run: | docker build -t passenger-go-exporter:test . diff --git a/.github/workflows/passenger-app.yml b/.github/workflows/passenger-app.yml index 7e707fe..a1a9eee 100644 --- a/.github/workflows/passenger-app.yml +++ b/.github/workflows/passenger-app.yml @@ -3,9 +3,9 @@ name: Passenger-App on: push: branches: - - "passenger-app" + - "passenger-app" tags-ignore: - - "**" + - "**" jobs: build: @@ -14,12 +14,12 @@ jobs: strategy: matrix: passenger-version: - - 6.0.11 - - 6.0.12 - - 6.0.13 + - 6.0.18 + - 6.0.19 + - 6.0.20 steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -27,17 +27,17 @@ jobs: run: echo "TAG_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ secrets.USERNAME }} password: ${{ secrets.CR_PAT }} - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: ./test/passenger-app push: true diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9bf68ec..6113e4b 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -9,11 +9,11 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: '1.20' - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} diff --git a/README.md b/README.md index 2ec3265..37769c6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Implemented in golang, keeps memory consumption below 100MB, and runs on CPU 0.0 ## Supported version - golang: 1.20 -- Passenger: 6.0.11, or later. +- Passenger: 6.0.18, or later. All other versions have not been tested. diff --git a/test/passenger-app/Dockerfile b/test/passenger-app/Dockerfile index 6e1cb85..bec134c 100644 --- a/test/passenger-app/Dockerfile +++ b/test/passenger-app/Dockerfile @@ -1,12 +1,9 @@ -FROM ruby:2.7 +FROM ruby:3.3 -ARG ARG_RAILS_VERSION=7.0.2.4 -ARG ARG_PASSENGER_VERSION=6.0.13 +ARG ARG_RAILS_VERSION=7.1.3 +ARG ARG_PASSENGER_VERSION=6.0.20 ENV RAILS_VERSION $ARG_RAILS_VERSION ENV PASSENGER_VERSION $ARG_PASSENGER_VERSION -# -RUN apt-get update \ - && apt-get install -y nodejs WORKDIR /app # Create rails new application.