Skip to content

Upgrade third-party modules for security reasons #923

Upgrade third-party modules for security reasons

Upgrade third-party modules for security reasons #923

Workflow file for this run

# Copyright 2021 The BFE Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "ci"
ci:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v3
with:
# Must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head of the pull request.
# Only include this option if you are running this workflow on pull requests.
fetch-depth: 2
# If this run was triggered by a pull request event then checkout
# the head of the pull request instead of the merge commit.
# Only include this step if you are running this workflow on pull requests.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# Check license header
- name: Check License Header
uses: apache/skywalking-eyes/[email protected]
# Setup golang sdk
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.21
# Build
- name: Build
shell: bash
run: |
make
# Coverage
- name: Coverage
shell: bash
run: |
make coverage
bash <(curl -s https://codecov.io/bash)
# Setup Python and start a mock server for Test
- name: setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- run: python3 -m http.server 8181&
# Modify Conf and Run
- name: Run
shell: bash
run: |
sed -i s/10.199.189.26/127.0.0.1/g output/conf/cluster_conf/cluster_table.data
cd output/bin/ && ./bfe -c ../conf -l ../log &
# A simple test to ensure bfe runs ok
- name: Test
shell: bash
run: |
status_code=`curl -l -s -o /dev/null -w %{http_code} http://localhost:8080 -H"Host:example.org"`
if [ "$status_code" != "200" ]; then exit 1; fi