Skip to content
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

Added test.txt #1

Closed
wants to merge 54 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
7beb2f6
Add GitHub Actions workflow for PR validation with build and test jobs
Dec 7, 2024
e5dae88
Added test.txt
Dec 7, 2024
a432fce
Update build.yml to fix cross compilation issue.
Dec 7, 2024
861199b
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 7, 2024
d8e66de
Refactor build.yml to use a job matrix
Dec 8, 2024
ab87297
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
baf1e45
Fixup build.yml
Dec 8, 2024
1d1eabd
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
fae1636
WIP: build.yml
Dec 8, 2024
83cb3e4
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
12b984b
cache cross
Dec 8, 2024
19de013
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
8c93eac
dix cross not cached
Dec 8, 2024
9d319c7
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
e4402d8
WIM gh action
Dec 8, 2024
1c8e18f
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
5e9d5ac
cache docker in build.yml
Dec 8, 2024
be82ec1
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
0126540
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
4c8642d
delete old workflow
Dec 8, 2024
cdd8ca2
Add format and clippy check to GH workflow
matej-almasi Dec 8, 2024
fa3e7cc
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
678dd67
fixup
matej-almasi Dec 8, 2024
449605f
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
d33cec3
fixup 2
matej-almasi Dec 8, 2024
c9a6356
fup
matej-almasi Dec 8, 2024
9ca93a8
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
e5a6ebf
Add CI/CD validation against Beta and Nightly Rust
matej-almasi Dec 8, 2024
e993a61
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
4fb96f1
Bad commit
matej-almasi Dec 8, 2024
cf5f5ca
fup
matej-almasi Dec 8, 2024
fdf4a7b
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
acd441c
fup
matej-almasi Dec 8, 2024
42521a9
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
e32611e
fup
matej-almasi Dec 8, 2024
368c751
Merge branch 'main' into test-pr-workflow
matej-almasi Dec 8, 2024
ea1fe48
wip
Dec 9, 2024
aadab77
fgdgfg
Dec 9, 2024
e0d9f8a
sdsfdf
Dec 9, 2024
474ab38
debug
Dec 9, 2024
aa962b3
dsfsdgf
Dec 9, 2024
77ae590
dfsfd
Dec 9, 2024
a9c9f6c
Revert "dfsfd"
Dec 9, 2024
7d8037f
sdgsfgdg
Dec 9, 2024
35fc0ac
dfgdgdfg
Dec 9, 2024
078b7ae
fddhgh
Dec 9, 2024
3896b26
test
Dec 9, 2024
794ddd2
test?
Dec 9, 2024
6cf9cd3
dfgdfgf
Dec 9, 2024
60bb216
dssfgs
Dec 9, 2024
c4dc925
final?
Dec 9, 2024
c3dfcfa
final.
Dec 9, 2024
7530d0e
last??
Dec 9, 2024
201c793
Revert "last??"
Dec 9, 2024
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
Prev Previous commit
Next Next commit
fgdgfg
Matej Almasi committed Dec 9, 2024
commit aadab77a0d57ac10bbc235fc3110c0e518840dfd
24 changes: 16 additions & 8 deletions .github/workflows/pr-main.yml
Original file line number Diff line number Diff line change
@@ -34,10 +34,6 @@ jobs:
- nightly
- beta

env:
BuildExitCode: 0
TestExitCode: 0

steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -65,22 +61,29 @@ jobs:
fi

- name: Build
id: build
run: |
${{ matrix.platform.command }} build --target ${{ matrix.platform.target }}
echo "exit_code=$?" >> $BuildExitCode
echo "EXIT_CODE=$?" >> "$GITHUB_OUTPUT"
continue-on-error: ${{ matrix.rust != 'stable' }}

- name: Test
id: test
run: |
${{ matrix.platform.command }} test --target ${{ matrix.platform.target }}
echo "exit_code=$?" >> $TestExitCode
echo "EXIT_CODE=$?" >> "$GITHUB_OUTPUT"
continue-on-error: ${{ matrix.rust != 'stable' }}

- name: Issue warnings for Beta or Nightly build fails
if: env.BuildExitCode != 0 && matrix.rust != 'stable'
env:
BUILD_RESULT: ${{ steps.build.outputs.EXIT_CODE }}
uses: actions/github-script@v7
with:
script: |
const { BUILD_RESULT } = process.env
if (BUILD_RESULT == 0) {
return;
}
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
@@ -89,10 +92,15 @@ jobs:
})

- name: Issue warnings for Beta or Nightly test fails
if: env.TestExitCode != 0 && matrix.rust != 'stable'
env:
TEST_RESULT: ${{ steps.test.outputs.EXIT_CODE }}
uses: actions/github-script@v7
with:
script: |
const { TEST_RESULT } = process.env
if (TEST_RESULT == 0) {
return;
}
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,

Unchanged files with check annotations Beta

}
/// Main entry point for the `doru` application.
fn ain() {

Check failure on line 47 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, x86_64-unknown-linux-gnu, cargo, nightly)

function `ain` is never used

Check failure on line 47 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, x86_64-unknown-linux-gnu, cargo, beta)

function `ain` is never used

Check failure on line 47 in src/main.rs

GitHub Actions / build-and-test (windows-latest, x86_64-pc-windows-msvc, cargo, nightly)

function `ain` is never used

Check failure on line 47 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, aarch64-unknown-linux-gnu, cross, nightly)

function `ain` is never used

Check failure on line 47 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, aarch64-unknown-linux-gnu, cross, beta)

function `ain` is never used

Check failure on line 47 in src/main.rs

GitHub Actions / build-and-test (windows-latest, x86_64-pc-windows-msvc, cargo, beta)

function `ain` is never used
let cli = Cli::parse();
let path = match cli.path {
/// # Errors
///
/// Returns an error if the user's home directory cannot be determined.
fn get_todos_path() -> Result<PathBuf, Box<dyn Error>> {

Check failure on line 102 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, x86_64-unknown-linux-gnu, cargo, nightly)

function `get_todos_path` is never used

Check failure on line 102 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, x86_64-unknown-linux-gnu, cargo, beta)

function `get_todos_path` is never used

Check failure on line 102 in src/main.rs

GitHub Actions / build-and-test (windows-latest, x86_64-pc-windows-msvc, cargo, nightly)

function `get_todos_path` is never used

Check failure on line 102 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, aarch64-unknown-linux-gnu, cross, nightly)

function `get_todos_path` is never used

Check failure on line 102 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, aarch64-unknown-linux-gnu, cross, beta)

function `get_todos_path` is never used

Check failure on line 102 in src/main.rs

GitHub Actions / build-and-test (windows-latest, x86_64-pc-windows-msvc, cargo, beta)

function `get_todos_path` is never used
if let Ok(env_path) = env::var("DORU_PATH") {
Ok(PathBuf::from(env_path))
} else if let Some(home_dir) = dirs::home_dir() {
/// # Errors
///
/// Returns an error if the directories or file cannot be created.
fn ensure_storage_exists(path: &Path) -> std::io::Result<()> {

Check failure on line 120 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, x86_64-unknown-linux-gnu, cargo, nightly)

function `ensure_storage_exists` is never used

Check failure on line 120 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, x86_64-unknown-linux-gnu, cargo, beta)

function `ensure_storage_exists` is never used

Check failure on line 120 in src/main.rs

GitHub Actions / build-and-test (windows-latest, x86_64-pc-windows-msvc, cargo, nightly)

function `ensure_storage_exists` is never used

Check failure on line 120 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, aarch64-unknown-linux-gnu, cross, nightly)

function `ensure_storage_exists` is never used

Check failure on line 120 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, aarch64-unknown-linux-gnu, cross, beta)

function `ensure_storage_exists` is never used

Check failure on line 120 in src/main.rs

GitHub Actions / build-and-test (windows-latest, x86_64-pc-windows-msvc, cargo, beta)

function `ensure_storage_exists` is never used
if !path.exists() {
if let Some(parent) = path.parent() {
fs::create_dir_all(parent)?;
}
Ok(())
}

Check failure on line 130 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, x86_64-unknown-linux-gnu, cargo, nightly)

`main` function not found in crate `doru`

Check failure on line 130 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, x86_64-unknown-linux-gnu, cargo, beta)

`main` function not found in crate `doru`

Check failure on line 130 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, x86_64-unknown-linux-gnu, cargo, stable)

`main` function not found in crate `doru`

Check failure on line 130 in src/main.rs

GitHub Actions / build-and-test (windows-latest, x86_64-pc-windows-msvc, cargo, nightly)

`main` function not found in crate `doru`

Check failure on line 130 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, aarch64-unknown-linux-gnu, cross, nightly)

`main` function not found in crate `doru`

Check failure on line 130 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, aarch64-unknown-linux-gnu, cross, beta)

`main` function not found in crate `doru`

Check failure on line 130 in src/main.rs

GitHub Actions / build-and-test (ubuntu-latest, aarch64-unknown-linux-gnu, cross, stable)

`main` function not found in crate `doru`

Check failure on line 130 in src/main.rs

GitHub Actions / build-and-test (windows-latest, x86_64-pc-windows-msvc, cargo, beta)

`main` function not found in crate `doru`

Check failure on line 130 in src/main.rs

GitHub Actions / build-and-test (windows-latest, x86_64-pc-windows-msvc, cargo, stable)

`main` function not found in crate `doru`