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

ci: update some actions version #61

Merged
merged 4 commits into from Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
69 changes: 34 additions & 35 deletions .github/workflows/ci.yaml
@@ -1,38 +1,37 @@
name: CI
on:
push:
branches:
- master
pull_request: null
schedule:
-
cron: '0 0 * * MON'
push:
branches:
- master
pull_request: null
schedule:
- cron: "0 0 * * MON"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2']
composer-flags: ['']
name: ['']
include:
- php-version: '8.1'
composer-flags: '--prefer-lowest'
name: '(prefer lowest dependencies)'
name: Tests PHP ${{ matrix.php-version }} ${{ matrix.name }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: composer install
run: composer update --prefer-dist --no-interaction ${{ matrix.composer-flags }}
- name: Build docker
run: docker build -t httpbin .
- name: Run docker
run: docker run -d -p 8081:80 httpbin
- name: tests
run: composer test
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ["8.2", "8.3"]
composer-flags: [""]
name: [""]
include:
- php-version: "8.1"
composer-flags: "--prefer-lowest"
name: "(prefer lowest dependencies)"
name: Tests PHP ${{ matrix.php-version }} ${{ matrix.name }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: composer install
run: composer update --prefer-dist --no-interaction ${{ matrix.composer-flags }}
- name: Build docker
run: docker build -t httpbin .
- name: Run docker
run: docker run -d --rm -p 8081:80 httpbin
- name: tests
run: composer test
5 changes: 2 additions & 3 deletions Dockerfile
@@ -1,6 +1,5 @@
FROM golang:1.9-alpine3.7
FROM golang:1.22-alpine

RUN apk --update add git
RUN go get github.com/ahmetb/go-httpbin/cmd/httpbin
RUN go install github.com/ahmetb/go-httpbin/cmd/httpbin@latest

CMD ["bin/httpbin","-host",":80"]