-
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/add-missing-intermediate-nutriment
- Loading branch information
Showing
1,158 changed files
with
46,526 additions
and
30,866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,9 +109,17 @@ jobs: | |
key: taxonomies-${{ hashFiles('taxonomies/**') }} | ||
restore-keys: taxonomies- | ||
- name: Download backend image from artifacts | ||
id: downloadbackendimage | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "openfoodfacts-server/backend:dev" | ||
# downloadbackendimage task loads the image into docker and keeps the original file. | ||
# As our runs tend to hit the storage limits for GitHub Actions, manually delete the | ||
# downloaded file for now. It's not needed after being loaded into docker. | ||
- name: Remove downloaded image | ||
env: | ||
FILE: "${{ steps.downloadbackendimage.outputs.download_path }}" | ||
run: rm $FILE | ||
- name: build taxonomies (should use cache) | ||
run: make DOCKER_LOCAL_DATA="$(pwd)" build_taxonomies GITHUB_TOKEN="${{ secrets.TAXONOMY_CACHE_GITHUB_TOKEN }}" | ||
- name: check taxonomies | ||
|
@@ -148,9 +156,17 @@ jobs: | |
run: | | ||
git ls-files taxonomies/ | xargs -I{} git log -1 --date=format:%Y%m%d%H%M.%S --format='touch -t %ad "{}"' "{}" | bash | ||
- name: Download backend image from artifacts | ||
id: downloadbackendimage | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "openfoodfacts-server/backend:dev" | ||
# downloadbackendimage task loads the image into docker and keeps the original file. | ||
# As our runs tend to hit the storage limits for GitHub Actions, manually delete the | ||
# downloaded file for now. It's not needed after being loaded into docker. | ||
- name: Remove downloaded image | ||
env: | ||
FILE: "${{ steps.downloadbackendimage.outputs.download_path }}" | ||
run: rm $FILE | ||
- name: tests | ||
run: | | ||
make codecov_prepare | ||
|
@@ -165,6 +181,13 @@ jobs: | |
if: always() | ||
with: | ||
files: cover_db/codecov.json | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./tests/unit/outputs/junit.xml,./tests/integration/outputs/junit.xml | ||
|
||
tests_dev: | ||
name: 🧪 Test make dev | ||
|
@@ -182,9 +205,17 @@ jobs: | |
key: taxonomies-${{ hashFiles('taxonomies/**') }} | ||
restore-keys: taxonomies- | ||
- name: Download backend image from artifacts | ||
id: downloadbackendimage | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "openfoodfacts-server/backend:dev" | ||
# downloadbackendimage task loads the image into docker and keeps the original file. | ||
# As our runs tend to hit the storage limits for GitHub Actions, manually delete the | ||
# downloaded file for now. It's not needed after being loaded into docker. | ||
- name: Remove downloaded image | ||
env: | ||
FILE: "${{ steps.downloadbackendimage.outputs.download_path }}" | ||
run: rm $FILE | ||
- name: set right UID and GID in .envrc | ||
run: | | ||
rm -f .envrc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- id: release | ||
uses: google-github-actions/[email protected].1 | ||
uses: googleapis/[email protected].3 | ||
with: | ||
# We can't use GITHUB_TOKEN here because, github actions can't trigger actions | ||
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.