mirror of https://github.com/Chocobozzz/PeerTube
Add fixtures cache to github actions
parent
ee90f1bc19
commit
07491f4b98
|
@ -66,12 +66,22 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
**/node_modules
|
**/node_modules
|
||||||
~/fixtures
|
|
||||||
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-
|
${{ runner.OS }}-node-
|
||||||
${{ runner.OS }}-
|
${{ runner.OS }}-
|
||||||
|
|
||||||
|
- name: Cache fixtures
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
fixtures
|
||||||
|
key: ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-${{ hashFiles('fixtures/*') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-
|
||||||
|
${{ runner.OS }}-fixtures-
|
||||||
|
${{ runner.OS }}-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
|
|
|
@ -242,7 +242,7 @@ describe('Test video transcoding', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should wait for transcoding before publishing the video', async function () {
|
it('Should wait for transcoding before publishing the video', async function () {
|
||||||
this.timeout(80000)
|
this.timeout(160000)
|
||||||
|
|
||||||
{
|
{
|
||||||
// Upload the video, but wait transcoding
|
// Upload the video, but wait transcoding
|
||||||
|
|
|
@ -66,8 +66,8 @@ async function testImage (url: string, imageName: string, imagePath: string, ext
|
||||||
function buildAbsoluteFixturePath (path: string, customCIPath = false) {
|
function buildAbsoluteFixturePath (path: string, customCIPath = false) {
|
||||||
if (isAbsolute(path)) return path
|
if (isAbsolute(path)) return path
|
||||||
|
|
||||||
if (customCIPath) {
|
if (customCIPath && process.env.GITHUB_WORKSPACE) {
|
||||||
return join(process.env.HOME, 'fixtures', path)
|
return join(process.env.GITHUB_WORKSPACE, 'fixtures', path)
|
||||||
}
|
}
|
||||||
|
|
||||||
return join(root(), 'server', 'tests', 'fixtures', path)
|
return join(root(), 'server', 'tests', 'fixtures', path)
|
||||||
|
|
Loading…
Reference in New Issue