-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpackage-test-centos-docker.yaml
More file actions
54 lines (47 loc) · 1.43 KB
/
package-test-centos-docker.yaml
File metadata and controls
54 lines (47 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Package build test (dockerized centos)
on:
# pull_request:
# types: [opened, synchronize, reopened]
# push:
# branches:
# - '**'
# paths-ignore:
# - '.github/workflows/**'
workflow_dispatch:
jobs:
test-package-build-centos:
if: github.event_name == 'pull_request' || github.event.pull_request == null
strategy:
matrix:
centos_version: [9, 10]
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream${{ matrix.centos_version }}-minimal
steps:
- name: Install system dependencies
run: |
# Update package lists
microdnf update -y
# Install required packages
microdnf install -y python3 python3-pip git make tar
# Verify installations
python3 --version
git --version
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Open Edison
uses: ./.github/actions/setup
- name: Install Node.js and npm
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Build package
run: make build_package
- name: Test package build with uvx
run: |
echo "Testing uvx command from current directory:"
uvx --refresh --from . open-edison --help