Skip to content

Test matrix #2

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/archives/workflow_8.yml

This file was deleted.

73 changes: 73 additions & 0 deletions .github/workflows/workflow_8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: eighth_workflow

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

on:
push:

jobs:
job_A:
name: Job A
strategy:
fail-fast: false
max-parallel: 2
matrix:
os: [ubuntu-latest, ubuntu-22.04]
user: [yatharth, alpha]
exclude:
- os: ubuntu-22.04
user: alpha
include:
- os: ubuntu-latest
user: beta
runs-on: ${{ matrix.os }}
steps:
- name: Get system information
run: |
cat /etc/os-release
echo "OS version: ${{ runner.os }}"
echo "OS architecture: ${{ runner.arch }}"
echo "${{ matrix.user }}"

job_build:
name: Build
strategy:
matrix:
os:
- ubuntu-latest
- ubuntu-22.04
lang:
- name: java
directory: java
command: gradlew build
- name: node
directory: node
command: npm install
- name: python
directory: python
command: pip install -r requirements.txt
exclude:
- os: ubuntu-22.04
lang:
name: node
directory: node
command: npm install
include:
- os: ubuntu-22.04
lang:
name: php
directory: php
command: php install
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build with ${{ matrix.lang.name }}
run: |
mkdir -p ${{ matrix.lang.directory }}
cd ${{ matrix.lang.directory }}
echo ${{ matrix.lang.command }}