Skip to content

Commit

Permalink
ci(pr): add pipeline for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanlogue committed Aug 27, 2024
1 parent 684fde5 commit 57e5995
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: PR pipeline

on: pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v5
with:
go-version: 1.22.1
- name: Install dependencies
run: go get .
- name: build
run: go build -v ./...
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v5
with:
go-version: 1.22.1
- name: Install dependencies
run: go get .
- name: test
run: go test -json > test-results.json
- name: upload results
uses: actions/upload-artifact@v4
with:
name: meteor-TestResults
path: meteor-TestResults.json

0 comments on commit 57e5995

Please sign in to comment.