Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions and test Passenger app #43

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
version: v0.11.1
version: "v0.21.0"
- name: Kind Load Image
run: |
docker build -t passenger-go-exporter:test .
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/passenger-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Passenger-App
on:
push:
branches:
- "passenger-app"
- "passenger-app"
tags-ignore:
- "**"
- "**"

jobs:
build:
Expand All @@ -14,30 +14,30 @@ 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

- name: Set env
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
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -28,7 +28,7 @@ jobs:
run: go test -json ./... > test.json
- name: annotate tests
if: always()
uses: guyarb/golang-test-annotations@v0.6.0
uses: guyarb/golang-test-annotations@v0.7.0
with:
test-results: test.json
lint:
Expand All @@ -38,11 +38,9 @@ jobs:
go-version: [1.20]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
stable: 'true'
go-version: '1.20'
- uses: golangci/golangci-lint-action@v3
with:
skip-go-installation: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
9 changes: 3 additions & 6 deletions test/passenger-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading