-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fsim_test
- Loading branch information
Showing
25 changed files
with
443 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: prifidoiot | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [master, '*rel'] | ||
pull_request: | ||
branches: [master, '*rel'] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: scm checkout | ||
uses: actions/checkout@v3 | ||
- name: setup-java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: build | ||
run: | | ||
mvn clean install | ||
cd component-samples && tar -czvf demo.tar.gz demo && mv demo.tar.gz .. | ||
- name: checkout test-fidoiot | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: fido-device-onboard/test-fidoiot | ||
ref: master | ||
path: test-fidoiot | ||
- name: Add host to /etc/hosts | ||
run: | | ||
sudo echo "127.0.0.1 host.docker.internal" | sudo tee -a /etc/hosts | ||
- name: run smoke test | ||
run: | | ||
mkdir -p test-fidoiot/binaries/pri-fidoiot | ||
cp -r component-samples/demo/* test-fidoiot/binaries/pri-fidoiot | ||
cp -r test-fidoiot/binaries/pri-fidoiot/device/* test-fidoiot/ | ||
cd test-fidoiot/binaries/pri-fidoiot/scripts | ||
bash demo_ca.sh | ||
bash web_csr_req.sh | ||
bash user_csr_req.sh | ||
bash keys_gen.sh | ||
chmod -R 777 secrets/ | ||
cp -r service.env secrets/ ../aio/ | ||
cp -r secrets/ ../db/ | ||
sed -i '/<security-constraint>/,/<.security-constraint>/d' ../aio/WEB-INF/web.xml | ||
sed -i '/^innodb/d' ../db/custom/config-file.cnf | ||
cd ${{ github.workspace }}/test-fidoiot | ||
export TEST_DIR=$PWD | ||
mvn clean test -Dgroups=fdo_pri_smoketest | ||
- name: archive artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: demo.tar.gz | ||
path: demo.tar.gz | ||
retention-days: 5 | ||
if: github.event_name != 'pull_request' |
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
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
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.