Skip to content

Commit bcf8d4c

Browse files
committed
fix
1 parent 0e2a108 commit bcf8d4c

File tree

8 files changed

+77
-61
lines changed

8 files changed

+77
-61
lines changed

.github/actions/install-deps/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ runs:
3030
# export npm_config_keytar_binary_host_mirror=${{ inputs.keytar-host-mirror }}
3131
# export npm_config_node_sqlite3_binary_host_mirror=${{ inputs.sqlite3-host-mirror }}
3232
33-
yarn install
33+
yarn install --frozen-lockfile --network-timeout 1000000

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: 🚀 Build
22

33
on:
44
# Manual trigger build

.github/workflows/compress-images.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
permissions: write-all
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Checkout Repo
20-
uses: actions/checkout@v4
19+
- name: Checkout Repo
20+
uses: actions/checkout@v4
2121

22-
- name: Compress Images
23-
uses: calibreapp/image-actions@main
24-
with:
25-
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
26-
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
27-
githubToken: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Compress Images
23+
uses: calibreapp/image-actions@main
24+
with:
25+
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
26+
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
27+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release (prod)
1+
name: Release (prod)
22

33
on:
44
push:

.github/workflows/release-stage.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: Release (stage)
1+
name: 📖 Release (stage)
22

33
on:
44
push:
55
branches:
66
- 'release/**'
7-
- 'test/release'
87

98
jobs:
109
tests:

.github/workflows/tests-integration.yml

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,25 @@ jobs:
5555
outputs:
5656
matrix: ${{ steps.parse-matrix.outputs.matrix }}
5757
steps:
58-
- name: Create JSON array for run-tests matrix
59-
id: parse-matrix
60-
run: |
61-
# Extract the JSON object from the environment variable
62-
MATRIX_JSON="$ITESTS_NAMES_SHORT"
58+
- name: Create JSON array for run-tests matrix
59+
id: parse-matrix
60+
run: |
61+
# Extract the JSON object from the environment variable
62+
MATRIX_JSON="$ITESTS_NAMES_SHORT"
6363
64-
if [ "${{ inputs.short_rte_list }}" == "false" ]; then
65-
MATRIX_JSON="$ITESTS_NAMES"
66-
fi
64+
if [ "${{ inputs.short_rte_list }}" == "false" ]; then
65+
MATRIX_JSON="$ITESTS_NAMES"
66+
fi
6767
68-
MATRIX_ARRAY=$(echo "$MATRIX_JSON" | jq -c 'keys')
68+
MATRIX_ARRAY=$(echo "$MATRIX_JSON" | jq -c 'keys')
6969
70-
# Output the formed JSON array for use in other jobs
71-
echo "matrix=$MATRIX_ARRAY" >> $GITHUB_OUTPUT
70+
# Output the formed JSON array for use in other jobs
71+
echo "matrix=$MATRIX_ARRAY" >> $GITHUB_OUTPUT
7272
73-
- name: Verify the formed matrix array
74-
run: |
75-
echo "Formed matrix array:"
76-
echo "${{ steps.parse-matrix.outputs.matrix }}"
73+
- name: Verify the formed matrix array
74+
run: |
75+
echo "Formed matrix array:"
76+
echo "${{ steps.parse-matrix.outputs.matrix }}"
7777
7878
run-tests:
7979
name: ITest
@@ -151,11 +151,18 @@ jobs:
151151
steps:
152152
- uses: actions/checkout@v4
153153

154+
- name: Merge coverage artifacts
155+
id: merge-artifacts
156+
uses: actions/upload-artifact/merge@v4
157+
with:
158+
name: coverages-artifacts
159+
pattern: coverages-*
160+
delete-merged: true
161+
154162
- name: Download coverage artifacts
155163
uses: actions/download-artifact@v4
156164
with:
157-
pattern: coverages-*
158-
merge-multiple: true
165+
pattern: coverages-artifacts
159166
path: ./coverages
160167

161168
- name: Calculate coverage across all tests runs
@@ -166,3 +173,13 @@ jobs:
166173
sudo cp -R ./coverages /usr/src/app && sudo chmod 777 -R /usr/src/app
167174
cd /usr/src/app && npx nyc report -t ./coverages -r text -r text-summary
168175
176+
- name: Delete Artifact
177+
uses: actions/github-script@v7
178+
with:
179+
script: |
180+
github.rest.actions.deleteArtifact({
181+
owner: context.repo.owner,
182+
repo: context.repo.repo,
183+
artifact_id: ${{ steps.merge-artifacts.outputs.artifact-id }}
184+
});
185+

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: Tests
22

33
on:
44
push:

.github/workflows/virustotal.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,39 @@ jobs:
2222
artifact_names: ${{ steps.list_artifacts.outputs.artifact_names }}
2323
artifact_exists: ${{ steps.list_artifacts.outputs.artifact_exists }}
2424
steps:
25-
- name: Checkout Repository
26-
uses: actions/checkout@v4
27-
28-
- name: Download All Artifacts
29-
uses: actions/download-artifact@v4
30-
with:
31-
path: ./release
32-
# TODO: enable pattern filter after fix:
33-
# https://github.com/nektos/act/issues/2433
34-
# pattern: '*-build'
35-
# merge-multiple: true
36-
37-
- run: ls -R ./release
38-
39-
- name: List Artifact Files
40-
id: list_artifacts
41-
run: |
42-
# If artifacts don't exist put array of app names for url check
43-
if [ ! -d "./release" ]; then
44-
echo "NO REALEASE FOLDER ${VIRUSTOTAL_FILE_NAMES}"
45-
echo "artifact_exists=false" >> $GITHUB_OUTPUT
46-
echo "artifact_names=$VIRUSTOTAL_FILE_NAMES" >> $GITHUB_OUTPUT
47-
exit 0;
48-
fi
25+
- name: Checkout Repository
26+
uses: actions/checkout@v4
27+
28+
- name: Download All Artifacts
29+
uses: actions/download-artifact@v4
30+
with:
31+
path: ./release
32+
# TODO: enable pattern filter after fix:
33+
# https://github.com/nektos/act/issues/2433
34+
# pattern: '*-build'
35+
# merge-multiple: true
36+
37+
- run: ls -R ./release
38+
39+
- name: List Artifact Files
40+
id: list_artifacts
41+
run: |
42+
# If artifacts don't exist put array of app names for url check
43+
if [ ! -d "./release" ]; then
44+
echo "NO REALEASE FOLDER ${VIRUSTOTAL_FILE_NAMES}"
45+
echo "artifact_exists=false" >> $GITHUB_OUTPUT
46+
echo "artifact_names=$VIRUSTOTAL_FILE_NAMES" >> $GITHUB_OUTPUT
47+
exit 0;
48+
fi
4949
50-
# Get list of artifacts
51-
ARTIFACTS=$(ls ./release)
50+
# Get list of artifacts
51+
ARTIFACTS=$(ls ./release)
5252
53-
# Conver list to json
54-
ARTIFACTS_JSON=$(echo "$ARTIFACTS" | jq -R -s -c 'split("\n")[:-1]')
53+
# Conver list to json
54+
ARTIFACTS_JSON=$(echo "$ARTIFACTS" | jq -R -s -c 'split("\n")[:-1]')
5555
56-
echo "artifact_exists=true" >> $GITHUB_OUTPUT
57-
echo "artifact_names=$ARTIFACTS_JSON" >> $GITHUB_OUTPUT
56+
echo "artifact_exists=true" >> $GITHUB_OUTPUT
57+
echo "artifact_names=$ARTIFACTS_JSON" >> $GITHUB_OUTPUT
5858
5959
analyze:
6060
name: Analyze file

0 commit comments

Comments
 (0)