Skip to content

feat: add conditions around CodeArtifact publishing and CodeCov #65

feat: add conditions around CodeArtifact publishing and CodeCov

feat: add conditions around CodeArtifact publishing and CodeCov #65

# This workflow will be triggered if there will be changes to
# aws-lambda-java-runtime-interface-client package and it builds the package.
name: PR to runtime-interface-client
on:
pull_request:
branches: [ '*' ]
paths:
- 'aws-lambda-java-runtime-interface-client/**'
- '.github/workflows/runtime-interface-client_*.yml'
jobs:
smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto
- name: Runtime Interface Client smoke tests - Run 'pr' target
working-directory: ./aws-lambda-java-runtime-interface-client
run: make pr
env:
IS_JAVA_8: true
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Available buildx platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Test Runtime Interface Client xplatform build - Run 'build' target
working-directory: ./aws-lambda-java-runtime-interface-client
run: make build
env:
IS_JAVA_8: true
- name: Save the built jar
uses: actions/upload-artifact@v4
with:
name: aws-lambda-java-runtime-interface-client
path: ./aws-lambda-java-runtime-interface-client/target/aws-lambda-java-runtime-interface-client-*.jar
- name: Upload coverage to Codecov
if: github.repository == "aws/aws-lambda-java-libs"

Check failure on line 67 in .github/workflows/runtime-interface-client_pr.yml

View workflow run for this annotation

GitHub Actions / PR to runtime-interface-client

Invalid workflow file

The workflow is not valid. .github/workflows/runtime-interface-client_pr.yml (Line: 67, Col: 11): Unexpected symbol: '"aws/aws-lambda-java-libs"'. Located at position 22 within expression: github.repository == "aws/aws-lambda-java-libs"
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}